Skip to content

Commit 1c0aa2b

Browse files
authored
Merge pull request #630 from timll/develop
Fix getSinkInfo returning no defs
2 parents a7c94d0 + b5732a3 commit 1c0aa2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soot-infoflow/src/soot/jimple/infoflow/sourcesSinks/manager/BaseSourceSinkManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ public SinkInfo getSinkInfo(Stmt sCallSite, InfoflowManager manager, AccessPath
386386
return null;
387387

388388
Collection<ISourceSinkDefinition> def = getSinkDefinitions(sCallSite, manager, ap);
389-
return def == null ? null : new SinkInfo(def);
389+
return def.size() > 0 ? new SinkInfo(def) : null;
390390
}
391391

392392
@Override

0 commit comments

Comments
 (0)