Commit 8d0d47bd by florissmit1 Committed by GitHub

Permission Manager / Location Settings intent nullpointer fix (#666)

* Fixed the nullpointer exception in the Permission result handler method

* updated the changelog and pubspec files

Co-authored-by: floris smit <florissmit@floriss-Air.localdomain>
parent 412391a5
## 8.1.6
* Android: Fixed a `NullPointerException` when changing permissions in the Location Settings intent.
## 8.1.5 ## 8.1.5
* Android: Fixed deprecation warnings/errors when `compileSdkVersion` was set to 31 (Android S/12). * Android: Fixed deprecation warnings/errors when `compileSdkVersion` was set to 31 (Android S/12).
......
...@@ -104,6 +104,10 @@ final class PermissionManager implements PluginRegistry.ActivityResultListener, ...@@ -104,6 +104,10 @@ final class PermissionManager implements PluginRegistry.ActivityResultListener,
return false; return false;
} }
if (requestResults == null) {
return false;
}
for (int i = 0; i < permissions.length; i++) { for (int i = 0; i < permissions.length; i++) {
final String permissionName = permissions[i]; final String permissionName = permissions[i];
......
name: permission_handler name: permission_handler
description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions. description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
version: 8.1.5 version: 8.1.6
homepage: https://github.com/baseflowit/flutter-permission-handler homepage: https://github.com/baseflowit/flutter-permission-handler
flutter: flutter:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment