Skip to content

Commit 758e963

Browse files
committed
Fix NullPointerException
1 parent 6b0574c commit 758e963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

liquidjava-verifier/src/main/java/liquidjava/diagnostics/LJDiagnostic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public SourcePosition getPosition() {
4646
}
4747

4848
public void setPosition(SourcePosition pos) {
49-
if (pos == null)
49+
if (pos == null || pos.getFile() == null)
5050
return;
5151
this.position = pos;
5252
this.file = pos.getFile().getPath();

0 commit comments

Comments
 (0)