Skip to content

Commit 7610af4

Browse files
committed
Added missing null check
1 parent c202839 commit 7610af4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go-lisa/src/main/java/it/unive/golisa/cfg/expression/GoCollectionAccess.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ public <A extends AbstractState<A>> AnalysisState<A> fwdBinarySemantics(Interpro
8787
Unit unit = this.getProgram().getUnit(left.toString());
8888
if(unit != null) {
8989
Global global = unit.getGlobal(right.toString());
90-
91-
return new AccessGlobal(getCFG(), getLocation(), unit, global).forwardSemantics(state, interprocedural, expressions);
90+
if(global != null)
91+
return new AccessGlobal(getCFG(), getLocation(), unit, global).forwardSemantics(state, interprocedural, expressions);
9292
}
9393
}
9494

0 commit comments

Comments
 (0)