Skip to content

Commit 3b471d8

Browse files
committed
Fix for NPE
1 parent 87fdd50 commit 3b471d8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

soot-infoflow/src/soot/jimple/infoflow/util/SystemClassHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public static void setInstance(SystemClassHandler instance) {
5353
* @return True if the given class belongs to a system package, otherwise false
5454
*/
5555
public boolean isClassInSystemPackage(SootClass clazz) {
56+
if (clazz == null)
57+
return false;
5658
FlowDroidSystemClassChecked checked = (FlowDroidSystemClassChecked) clazz
5759
.getTag(FlowDroidSystemClassChecked.TAG_NAME);
5860
boolean r;

0 commit comments

Comments
 (0)