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

Commit 2a1bf58e authored by Eugene Susla's avatar Eugene Susla
Browse files

Fix NPE when exempting CDM apps from auto revoke

Test: presubmit
Fixes: 159233540
Change-Id: I6f4aa5dc92d5adb00662f091863e0d26f5a4eb66
parent 40f7d483
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -222,6 +222,9 @@ public class CompanionDeviceManagerService extends SystemService implements Bind

            try {
                Set<Association> associations = readAllAssociations(userId);
                if (associations == null) {
                    continue;
                }
                for (Association a : associations) {
                    try {
                        int uid = pm.getPackageUidAsUser(a.companionAppPackage, userId);