Skip to content

Commit ce91ab5

Browse files
authored
Merge pull request #3679 from 1c-syntax/copilot/fix-nullpointerexception-ctx-children
Fix NPE in IdenticalExpressionsDiagnostic when ctx.children is null
2 parents f6c26e5 + 0db3439 commit ce91ab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/IdenticalExpressionsDiagnostic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,6 @@ private static boolean isComplementary(BinaryOperationNode binary) {
235235
}
236236

237237
private static boolean sufficientSize(BSLParser.ExpressionContext ctx) {
238-
return ctx.children.size() < MIN_EXPRESSION_SIZE;
238+
return ctx.getChildCount() < MIN_EXPRESSION_SIZE;
239239
}
240240
}

0 commit comments

Comments
 (0)