Skip to content

Commit 0d702f2

Browse files
committed
Make sure to not inject into a null-source
1 parent 06079b6 commit 0d702f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soot-infoflow/src/soot/jimple/infoflow/AbstractInfoflow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ private void patchDynamicInvokeInstructions() {
540540
if (sm.hasActiveBody()) {
541541
Body body = sm.getActiveBody();
542542
patchDynamicInvokeInstructions(body);
543-
} else if (!(sm.getSource() instanceof MethodSourceInjector)) {
543+
} else if (!(sm.getSource() instanceof MethodSourceInjector) && sm.getSource() != null) {
544544
sm.setSource(new MethodSourceInjector(sm.getSource()) {
545545

546546
@Override

0 commit comments

Comments
 (0)