diff options
author | Michael W <baddaemon87@gmail.com> | 2016-07-22 18:16:59 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-07-27 11:47:51 -0700 |
commit | 29d679a18784e8c28d2146ad3037c420abc00928 (patch) | |
tree | ffbb4f8b8e570b65bac8d5f94a9dcb4713eb1e85 /src/com | |
parent | 9176a64ebcf2f59b01f0159ae129c56230b28cb6 (diff) | |
download | packages_apps_Settings-29d679a18784e8c28d2146ad3037c420abc00928.zip packages_apps_Settings-29d679a18784e8c28d2146ad3037c420abc00928.tar.gz packages_apps_Settings-29d679a18784e8c28d2146ad3037c420abc00928.tar.bz2 |
Settings: Fix possible crash
applicationInfo is null sometimes, check that first
Change-Id: I4c2d73cced26b8900c95ede08e5a9c478c107529
Reference: BugDumps 13-20160715-21 L#52
Diffstat (limited to 'src/com')
-rwxr-xr-x | src/com/android/settings/applications/InstalledAppDetails.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/settings/applications/InstalledAppDetails.java b/src/com/android/settings/applications/InstalledAppDetails.java index f9dda55..43c3489 100755 --- a/src/com/android/settings/applications/InstalledAppDetails.java +++ b/src/com/android/settings/applications/InstalledAppDetails.java @@ -413,8 +413,9 @@ public class InstalledAppDetails extends AppInfoBase mUpdatedSysApp = (mAppEntry.info.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; menu.findItem(UNINSTALL_UPDATES).setVisible(mUpdatedSysApp && !mAppControlRestricted); - menu.findItem(OPEN_PROTECTED_APPS).setVisible(mPackageInfo.applicationInfo.protect); - + if (mPackageInfo.applicationInfo != null) { + menu.findItem(OPEN_PROTECTED_APPS).setVisible(mPackageInfo.applicationInfo.protect); + } } @Override |