Skip to content

Commit bb106d5

Browse files
committed
Fix NPE
1 parent 0b30a52 commit bb106d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

soot-infoflow/src/soot/jimple/infoflow/codeOptimization/InterproceduralConstantValuePropagator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,8 @@ private void propagateConstantsIntoCallee(SootMethod sm) {
834834
if (excludedMethods != null && icfg.isReachable(callSite)) {
835835
SootMethod caller = icfg.getMethodOf(callSite);
836836
// synthetic methods e.g. created by FlowDroid are excluded by default
837-
if (excludedMethods.contains(caller) || caller.hasTag(SimulatedCodeElementTag.TAG_NAME)) {
837+
if (caller == null || excludedMethods.contains(caller)
838+
|| caller.hasTag(SimulatedCodeElementTag.TAG_NAME)) {
838839
logger.trace("Ignoring calls from {}", caller);
839840
continue;
840841
}

0 commit comments

Comments
 (0)