Fix an NPE in PackageManager when getting the AppInfo for an app

Bug: 7072043
Change-Id: I37378b13820152434e7b3249e13c27001fe4ae5a
This commit is contained in:
Amith Yamasani
2012-08-29 18:48:08 -07:00
parent c479b55abe
commit 317046a087

View File

@@ -1818,7 +1818,7 @@ public class PackageManagerService extends IPackageManager.Stub {
pkg.applicationInfo.publicSourceDir = ps.resourcePathString;
pkg.applicationInfo.sourceDir = ps.codePathString;
pkg.applicationInfo.dataDir =
getDataPathForPackage(ps.pkg.packageName, 0).getPath();
getDataPathForPackage(packageName, 0).getPath();
pkg.applicationInfo.nativeLibraryDir = ps.nativeLibraryPathString;
}
// pkg.mSetEnabled = ps.getEnabled(userId);