Skip to content

Commit 07ca3f0

Browse files
committed
Fix NullPointerException in OperationsChecker
1 parent 194f7dd commit 07ca3f0

File tree

1 file changed

+3
-0
lines changed
  • liquidjava-verifier/src/main/java/liquidjava/processor/refinement_checker/general_checkers

1 file changed

+3
-0
lines changed

liquidjava-verifier/src/main/java/liquidjava/processor/refinement_checker/general_checkers/OperationsChecker.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ private Predicate getOperationRefinements(CtBinaryOperator<?> operator, CtVariab
245245
// skip strings
246246
return new Predicate();
247247
}
248+
if (l.getValue() == null)
249+
throw new ParsingException("Null literals are not supported");
250+
248251
return new Predicate(l.getValue().toString(), element, rtc.getErrorEmitter());
249252

250253
} else if (element instanceof CtInvocation<?>) {

0 commit comments

Comments
 (0)