From c1f24abd1098c2585bdb67b5ecb172433fdd2c90 Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Mon, 15 Jun 2015 11:38:03 -0400 Subject: Don't try to get entries for uninstalled apps. Bug: 21837824 Change-Id: I6f7bbc309e9edf1db12476f55ab8be424739fae0 --- .../src/com/android/settingslib/applications/ApplicationsState.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/SettingsLib') 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; -- cgit v1.1