PMS: check outInfo for null during delete

It appears that changing an application's signature during boot can pass
an outInfo of null to this function.

Bug: 7402550
Change-Id: I839fea6c8ee728a352c6b906f0fa6671c85f8694
This commit is contained in:
Kenny Root
2012-10-23 17:42:40 -07:00
parent 56e75631bd
commit 92bc9b3196

View File

@@ -8291,7 +8291,7 @@ public class PackageManagerService extends IPackageManager.Stub {
removePackageDataLI(ps, outInfo, flags, writeSettings);
// Delete application code and resources
if (deleteCodeAndResources) {
if (deleteCodeAndResources && (outInfo != null)) {
outInfo.args = createInstallArgs(packageFlagsToInstallFlags(ps), ps.codePathString,
ps.resourcePathString, ps.nativeLibraryPathString);
}