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

Commit fb697521 authored by Varun Shah's avatar Varun Shah
Browse files

Fix NPE in UriPermissions.

Change-Id: Ibc6f1a445d9729700370619f7cd9cf440441d06d
Fixes: 268262400
Test: builds, flashes, device boots.
parent 3ede2ac6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -207,8 +207,10 @@ final class UriPermission {
            if (mReadOwners != null && includingOwners) {
                ownedModeFlags &= ~Intent.FLAG_GRANT_READ_URI_PERMISSION;
                for (UriPermissionOwner r : mReadOwners) {
                    if (r != null) {
                        r.removeReadPermission(this);
                    }
                }
                mReadOwners = null;
            }
        }