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:
Hans-Christoph Steiner 2018-04-06 11:14:48 +02:00
parent b5adf7d0ef
commit 98aea01272

View File

@ -113,10 +113,6 @@ public abstract class Installer {
}
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);
if (appDiff.installedAppInfo != null) {
// update to an existing app