remove confusing Exception when checking permissions
Might as well just let things fail with a NullPointerException, that will provide more information around the crash.
This commit is contained in:
parent
b5adf7d0ef
commit
98aea01272
@ -113,10 +113,6 @@ public abstract class Installer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
AppDiff appDiff = new AppDiff(context.getPackageManager(), apk);
|
AppDiff appDiff = new AppDiff(context.getPackageManager(), apk);
|
||||||
if (appDiff.pkgInfo == null) {
|
|
||||||
// could not get diff because we couldn't parse the package
|
|
||||||
throw new RuntimeException("cannot parse!");
|
|
||||||
}
|
|
||||||
AppSecurityPermissions perms = new AppSecurityPermissions(context, appDiff.pkgInfo);
|
AppSecurityPermissions perms = new AppSecurityPermissions(context, appDiff.pkgInfo);
|
||||||
if (appDiff.installedAppInfo != null) {
|
if (appDiff.installedAppInfo != null) {
|
||||||
// update to an existing app
|
// update to an existing app
|
||||||
|
Loading…
x
Reference in New Issue
Block a user