Avoid crashing

Bug: 22202631
Change-Id: I1980f77ae4300dbd19d6829dc5974bab0b88d612
This commit is contained in:
Jason Monk
2015-07-01 10:36:30 -04:00
parent ad1f28cde0
commit f7806581e5

View File

@@ -346,7 +346,7 @@ public class InstalledAppDetails extends AppInfoBase
mMemoryPreference.setOnPreferenceClickListener(this);
mLaunchPreference = findPreference(KEY_LAUNCH);
if (mAppEntry.info != null) {
if (mAppEntry != null && mAppEntry.info != null) {
if ((mAppEntry.info.flags&ApplicationInfo.FLAG_INSTALLED) == 0 ||
!mAppEntry.info.enabled) {
mLaunchPreference.setEnabled(false);