summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-06-15 11:38:03 -0400
committerJason Monk <jmonk@google.com>2015-06-15 11:38:03 -0400
commitc1f24abd1098c2585bdb67b5ecb172433fdd2c90 (patch)
treea1bab7222ea980df24b7d1202de2558749531f19 /packages
parentb3c8564314a4ce05b722e33409f2c15bcdac6666 (diff)
downloadframeworks_base-c1f24abd1098c2585bdb67b5ecb172433fdd2c90.zip
frameworks_base-c1f24abd1098c2585bdb67b5ecb172433fdd2c90.tar.gz
frameworks_base-c1f24abd1098c2585bdb67b5ecb172433fdd2c90.tar.bz2
Don't try to get entries for uninstalled apps.
Bug: 21837824 Change-Id: I6f7bbc309e9edf1db12476f55ab8be424739fae0
Diffstat (limited to 'packages')
-rw-r--r--packages/SettingsLib/src/com/android/settingslib/applications/ApplicationsState.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/applications/ApplicationsState.java b/packages/SettingsLib/src/com/android/settingslib/applications/ApplicationsState.java
index 6561512..40d5437 100644
--- a/packages/SettingsLib/src/com/android/settingslib/applications/ApplicationsState.java
+++ b/packages/SettingsLib/src/com/android/settingslib/applications/ApplicationsState.java
@@ -281,7 +281,9 @@ public class ApplicationsState {
return null;
}
}
- entry = getEntryLocked(info);
+ if (info != null) {
+ entry = getEntryLocked(info);
+ }
}
if (DEBUG_LOCKING) Log.v(TAG, "...getEntry releasing lock");
return entry;