Skip to content

Commit

Permalink
Fix NPE in CompanionDeviceManagerService#unlockUser()
Browse files Browse the repository at this point in the history
Test: manual
Bug: 130221860
Change-Id: I77f59d3b60fb79fc3b975449903ad28b5b7893e2
  • Loading branch information
Michal Karpinski committed Apr 10, 2019
1 parent a29d434 commit 670b0d5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ public void onStart() {
@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);
Expand Down

0 comments on commit 670b0d5

Please sign in to comment.