Skip to content

Commit 6a67c4b

Browse files
committed
#1509 catch xlf parser exception
java.lang.ArrayIndexOutOfBoundsException: Index -1266568392 out of bounds for length -2073969448 at org.apache.xerces.impl.dtd.XMLDTDValidator.reset(Unknown Source)
1 parent 09394b2 commit 6a67c4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/fr/adrienbrault/idea/symfony2plugin/translation/dict/TranslationUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ private static void visitXliffTranslations(@NotNull InputStream content, @NotNul
334334
try {
335335
DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
336336
document = documentBuilder.parse(content);
337-
} catch (ParserConfigurationException | SAXException | IOException e) {
337+
} catch (ParserConfigurationException | SAXException | ArrayIndexOutOfBoundsException | IOException e) {
338338
return;
339339
}
340340

0 commit comments

Comments
 (0)