OSDN Git Service

Avoid crashing
authorJason Monk <jmonk@google.com>
Wed, 1 Jul 2015 14:36:30 +0000 (10:36 -0400)
committerJason Monk <jmonk@google.com>
Wed, 1 Jul 2015 14:36:30 +0000 (10:36 -0400)
Bug: 22202631
Change-Id: I1980f77ae4300dbd19d6829dc5974bab0b88d612

src/com/android/settings/applications/InstalledAppDetails.java

index 842660b..94705d2 100755 (executable)
@@ -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);