Check for perm being null in base permission

Test: Booted
Change-Id: I1c6256faab366b6d3b97a2da8958d1feeedf80cf
Fixes: 120833531
This commit is contained in:
Philip P. Moltmann
2018-12-11 07:28:28 -08:00
parent d5cc0bc170
commit 42f0b444c8

View File

@@ -191,7 +191,8 @@ public final class BasePermission {
}
public boolean isRemoved() {
return perm.info != null && (perm.info.flags & PermissionInfo.FLAG_REMOVED) != 0;
return perm != null && perm.info != null
&& (perm.info.flags & PermissionInfo.FLAG_REMOVED) != 0;
}
public boolean isSignature() {