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

Commit 670b0d58 authored by Michal Karpinski's avatar Michal Karpinski
Browse files

Fix NPE in CompanionDeviceManagerService#unlockUser()

Test: manual
Bug: 130221860
Change-Id: I77f59d3b60fb79fc3b975449903ad28b5b7893e2
parent a29d4340
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -166,6 +166,9 @@ public class CompanionDeviceManagerService extends SystemService implements Bind
    @Override
    public void onUnlockUser(int userHandle) {
        Set<Association> associations = readAllAssociations(userHandle);
        if (associations == null || associations.isEmpty()) {
            return;
        }
        Set<String> companionAppPackages = new HashSet<>();
        for (Association association : associations) {
            companionAppPackages.add(association.companionAppPackage);