diff --git a/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java b/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java index 3d79c66616d..463835c5084 100644 --- a/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java +++ b/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java @@ -477,6 +477,10 @@ public class JetCompiler implements TranslatingCompiler { @Override public void endElement(String uri, String localName, String qName) throws SAXException { + if (tags.size() == 1) { + // We're directly inside the root tag: + return; + } CompilerMessageCategory category = CATEGORIES.get(qName.toLowerCase()); if (category == null) { compileContext.addMessage(ERROR, "Unknown compiler message tag: " + qName, null, -1, -1);