Skip to content

Commit b87803e

Browse files
committed
don't instrument phantom classes
1 parent 384eb05 commit b87803e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soot-infoflow-android/src/soot/jimple/infoflow/android/entryPointCreators/components/AbstractComponentEntryPointCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ protected void instrumentDummyMainMethod() {
256256
* Code adapted from FlowDroid v2.0.
257257
*/
258258
public void assignIntent(SootClass hostComponent, SootMethod method, int indexOfArgs) {
259-
if (!method.isStatic()) {
259+
if (method.isConcrete() && !method.isStatic()) {
260260
JimpleBody body = (JimpleBody) method.retrieveActiveBody();
261261

262262
// Some component types such as fragments don't have a getIntent() method

0 commit comments

Comments
 (0)