summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2013-04-15 17:44:59 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-04-15 17:44:59 +0000
commitcaf0496dc28445c1eb8288e38b44a9809779511b (patch)
tree936016aa2144a77fc885fc204dd9dfa7dde5432d /services
parent68913baf72832226c0788bdba885e92e186cc2d8 (diff)
parentfc78e60a8321e624a49523c38932793af36cf9f8 (diff)
downloadframeworks_base-caf0496dc28445c1eb8288e38b44a9809779511b.zip
frameworks_base-caf0496dc28445c1eb8288e38b44a9809779511b.tar.gz
frameworks_base-caf0496dc28445c1eb8288e38b44a9809779511b.tar.bz2
Merge "Check outInfo is not null"
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/pm/PackageManagerService.java18
1 files changed, 10 insertions, 8 deletions
diff --git a/services/java/com/android/server/pm/PackageManagerService.java b/services/java/com/android/server/pm/PackageManagerService.java
index c16f0ee..b039d41 100644
--- a/services/java/com/android/server/pm/PackageManagerService.java
+++ b/services/java/com/android/server/pm/PackageManagerService.java
@@ -8221,14 +8221,16 @@ public class PackageManagerService extends IPackageManager.Stub {
mSettings.writeLPr();
}
}
- // A user ID was deleted here. Go through all users and remove it from
- // KeyStore.
- final int appId = outInfo.removedAppId;
- if (appId != -1) {
- final KeyStore keyStore = KeyStore.getInstance();
- if (keyStore != null) {
- for (final int userId : sUserManager.getUserIds()) {
- keyStore.clearUid(UserHandle.getUid(userId, appId));
+ if (outInfo != null) {
+ // A user ID was deleted here. Go through all users and remove it
+ // from KeyStore.
+ final int appId = outInfo.removedAppId;
+ if (appId != -1) {
+ final KeyStore keyStore = KeyStore.getInstance();
+ if (keyStore != null) {
+ for (final int userId : sUserManager.getUserIds()) {
+ keyStore.clearUid(UserHandle.getUid(userId, appId));
+ }
}
}
}