Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 642b3d45 authored by Abhijeet Kaur's avatar Abhijeet Kaur Committed by Android (Google) Code Review
Browse files

Merge "Null Pointer check on ApplicationInfo object before invoking method"

parents 6adc582d 8217a65d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {