am 0eee410e: Merge "Check outInfo is not null" into jb-mr2-dev

* commit '0eee410e473c1546af80c63ec866655a28833f33':
  Check outInfo is not null
This commit is contained in:
Kenny Root
2013-04-08 16:16:44 -07:00
committed by Android Git Automerger

View File

@@ -8647,14 +8647,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));
}
}
}
}