Skip to content

Commit 1b4cd59

Browse files
committed
Fix NPE
1 parent 20bff15 commit 1b4cd59

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@ protected SootMethod createDummyMainInternal() {
278278
"java.lang.ClassLoader getClassLoader()", false);
279279
applicationLocal = j.newLocal("application", RefType.v(AndroidEntryPointConstants.APPLICATIONCLASS));
280280
body.getLocals().add(applicationLocal);
281-
String classAppl = applicationClass.getName();
282-
if (classAppl == null)
283-
classAppl = "android.app.Application";
281+
String classAppl = "android.app.Application";
282+
if (applicationClass != null)
283+
classAppl = applicationClass.getName();
284284
Local clazzL = j.newLocal("clazz", RefType.v("java.lang.Class"));
285285
body.getLocals().add(clazzL);
286286
Local classLoader = j.newLocal("classLoader", RefType.v("java.lang.ClassLoader"));

0 commit comments

Comments
 (0)