Skip to content

Commit 317046a

Browse files
author
Amith Yamasani
committed
Fix an NPE in PackageManager when getting the AppInfo for an app
Bug: 7072043 Change-Id: I37378b13820152434e7b3249e13c27001fe4ae5a
1 parent c479b55 commit 317046a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/pm/PackageManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,7 @@ private PackageInfo generatePackageInfoFromSettingsLPw(String packageName, int f
18181818
pkg.applicationInfo.publicSourceDir = ps.resourcePathString;
18191819
pkg.applicationInfo.sourceDir = ps.codePathString;
18201820
pkg.applicationInfo.dataDir =
1821-
getDataPathForPackage(ps.pkg.packageName, 0).getPath();
1821+
getDataPathForPackage(packageName, 0).getPath();
18221822
pkg.applicationInfo.nativeLibraryDir = ps.nativeLibraryPathString;
18231823
}
18241824
// pkg.mSetEnabled = ps.getEnabled(userId);

0 commit comments

Comments
 (0)