Skip to content

Commit b95d8c2

Browse files
committed
Fixed a comparison with null and boolean
1 parent c0c9f7f commit b95d8c2

File tree

1 file changed

+2
-1
lines changed
  • liquidjava-verifier/src/main/java/liquidjava/processor/refinement_checker

1 file changed

+2
-1
lines changed

liquidjava-verifier/src/main/java/liquidjava/processor/refinement_checker/VCChecker.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ public SMTResult verifySMTSubtype(Predicate expected, Predicate found, SourcePos
106106
try {
107107
if (CommandLineLauncher.cmdArgs.debugMode) {
108108
String exp = Utils.getExpressionFromPosition(position);
109-
System.out.println(String.format("%s <: %s %s at %s", expected, found, exp ? String.format("on expression '%s'", exp) : "" ,
109+
System.out.println(String.format("%s <: %s %s at %s", expected, found,
110+
exp == null ? String.format("on expression '%s'", exp) : "",
110111
position.getFile().getName() + ":" + position.getLine()));
111112
}
112113
return new SMTEvaluator().verifySubtype(found, expected, context);

0 commit comments

Comments
 (0)