Merge "Null Pointer check on ApplicationInfo object before invoking method"
This commit is contained in:
committed by
Android (Google) Code Review
commit
642b3d453e
@@ -4095,7 +4095,7 @@ class StorageManagerService extends IStorageManager.Stub
|
||||
if (!hasLegacy && !mIsFuseEnabled) {
|
||||
ApplicationInfo ai = mIPackageManager.getApplicationInfo(packageName,
|
||||
0, UserHandle.getUserId(uid));
|
||||
hasLegacy = ai.hasRequestedLegacyExternalStorage();
|
||||
hasLegacy = (ai != null && ai.hasRequestedLegacyExternalStorage());
|
||||
}
|
||||
|
||||
if (hasLegacy && hasWrite) {
|
||||
|
||||
Reference in New Issue
Block a user