Skip to content

Commit

Permalink
check request results null
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxin committed Jul 15, 2024
1 parent 9290ecd commit 652462b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@ public boolean onActivityResult(int requestCode, int resultCode, Intent data) {
return false;
}

requestResults.put(permission, status);
pendingRequestCount--;
if (requestResults != null) {
requestResults.put(permission, status);
pendingRequestCount--;
}

// Post result if all requests have been handled.
if (successCallback != null && pendingRequestCount == 0) {
Expand Down

0 comments on commit 652462b

Please sign in to comment.