We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40d4955 commit c0a744bCopy full SHA for c0a744b
1 file changed
src/main/java/com/teragrep/pth10/ast/commands/logicalstatement/LogicalStatementXML.java
@@ -334,6 +334,12 @@ else if (ctx.getChildCount() == 3) {
334
rv = new ElementNode(el);
335
}
336
337
+ else {
338
+ throw new IllegalStateException(
339
+ "Unexpected number of children: " + ctx.getChildCount() + " in query: " + ctx.getText()
340
+ );
341
+ }
342
+
343
if (rv instanceof SubSearchNode) {
344
LOGGER.info("[XML] [LogiStat] Return value was SubsearchNode. Converting to ElementNode!");
345
return new ElementNode(((SubSearchNode) rv).asElement(doc));
0 commit comments