Skip to content

Commit 04b50f1

Browse files
committed
Make sure to not create phantom classes accidentally
1 parent 2a13a68 commit 04b50f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

soot-infoflow-android/src/soot/jimple/infoflow/android/entryPointCreators/AndroidEntryPointCreator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ public AndroidEntryPointCreator(IManifestHandler manifest, Collection<SootClass>
155155
for (String clzName : new String[] { AndroidEntryPointConstants.ACTIVITYCLASS,
156156
AndroidEntryPointConstants.BROADCASTRECEIVERCLASS, AndroidEntryPointConstants.CONTENTPROVIDERCLASS,
157157
AndroidEntryPointConstants.SERVICECLASS }) {
158-
SootClass sc = Scene.v().getSootClassUnsafe(clzName);
159-
if (sc != null) {
158+
SootClass sc = Scene.v().getSootClassUnsafe(clzName, false);
159+
if (sc != null && !sc.isPhantom()) {
160160
allComponentClasses.addAll(h.getSubclassesOf(sc));
161161
}
162162
}

0 commit comments

Comments
 (0)