am 3988dd5a: am a6eca19a: am f7806581: Avoid crashing

* commit '3988dd5a6baa2d061da605aebd6f54566f51bbfa':
  Avoid crashing
This commit is contained in:
Jason Monk
2015-07-01 17:24:42 +00:00
committed by Android Git Automerger

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);