diff --git a/permission_handler_android/android/src/main/java/com/baseflow/permissionhandler/PermissionManager.java b/permission_handler_android/android/src/main/java/com/baseflow/permissionhandler/PermissionManager.java index ad420830d..d5ca8f355 100644 --- a/permission_handler_android/android/src/main/java/com/baseflow/permissionhandler/PermissionManager.java +++ b/permission_handler_android/android/src/main/java/com/baseflow/permissionhandler/PermissionManager.java @@ -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) {