mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-05-24 08:25:00 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user