Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caused by java.lang.NullPointerException Attempt to invoke interface method 'void com.baseflow.permissionhandler.n$b.a(java.util.Map)' on a null object reference #968

Closed
1 task
Super-Bin opened this issue Dec 22, 2022 · 3 comments
Labels
platform: android Issue is related to the Android platform. status: closed (missing info) Indicates the issue was automatically closed due to a lack of information. status: needs more info We need more information before we can continue work on this issue.

Comments

@Super-Bin
Copy link

馃悰 Bug Report

Crashlytics - Stack trace

Fatal Exception: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=210, result=-1, data=Intent { (has extras) }} to activity {com.xxx/com.xxx.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void com.baseflow.permissionhandler.n$b.a(java.util.Map)' on a null object reference
at android.app.ActivityThread.deliverResults(ActivityThread.java:5567)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:5606)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:54)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2374)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:233)
at android.os.Looper.loop(Looper.java:344)
at android.app.ActivityThread.main(ActivityThread.java:8248)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:589)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1071)

Caused by java.lang.NullPointerException: Attempt to invoke interface method 'void com.baseflow.permissionhandler.n$b.a(java.util.Map)' on a null object reference
at com.baseflow.permissionhandler.PermissionManager.onActivityResult(PermissionManager.java:100)
at io.flutter.embedding.engine.FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding.onActivityResult(FlutterEngineConnectionRegistry.java:840)
at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.onActivityResult(FlutterEngineConnectionRegistry.java:441)
at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onActivityResult(FlutterActivityAndFragmentDelegate.java:772)
at io.flutter.embedding.android.FlutterActivity.onActivityResult(FlutterActivity.java:685)
at android.app.Activity.dispatchActivityResult(Activity.java:8472)
at android.app.ActivityThread.deliverResults(ActivityThread.java:5560)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:5606)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:54)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2374)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:233)
at android.os.Looper.loop(Looper.java:344)
at android.app.ActivityThread.main(ActivityThread.java:8248)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:589)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1071)

Expected behavior

Reproduction steps

Configuration

Version: 1.x
permission_handler: 9.0.2

Platform:

  • 馃摫 iOS
  • [ x ] 馃 Android
@pritish-thub
Copy link

This might help https://www.youtube.com/watch?v=uMvGpBOT0ZY

@tcf150
Copy link

tcf150 commented Jun 20, 2023

i having the same issue as well when i using permission_handler_android: 10.2.1 or 10.2.0~
seem like is crash at

Caused by java.lang.NullPointerException: Attempt to invoke interface method 'void g.c.d.n$b.a(java.util.Map)' on a null object reference
       at com.baseflow.permissionhandler.PermissionManager.onActivityResult(PermissionManager.java:101)

successCallback.onSuccess(results);  

the successCallback could be null, feel like similar issue with #609 which the requestResults might be null

FYI @JDDV

@TimHoogstrate
Copy link
Contributor

Dear @Super-Bin or @tcf150,

Can you explain a bit more about the steps to reproduce, or share an example project or some example code with us? It would help a lot investigating this issue.

Kind regards,

@TimHoogstrate TimHoogstrate added status: needs more info We need more information before we can continue work on this issue. platform: android Issue is related to the Android platform. labels Aug 22, 2023
@github-actions
Copy link

github-actions bot commented Sep 5, 2023

Without additional information, we are unfortunately not able to resolve this issue. Therefore, we reluctantly closed this issue for now. If you run into this issue later, feel free to file a new issue with a reference to this issue. Add a description of detailed steps to reproduce, expected and current behaviour, logs and the output of 'flutter doctor -v'. Thanks for your contribution.

@github-actions github-actions bot added the status: closed (missing info) Indicates the issue was automatically closed due to a lack of information. label Sep 5, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: android Issue is related to the Android platform. status: closed (missing info) Indicates the issue was automatically closed due to a lack of information. status: needs more info We need more information before we can continue work on this issue.
Projects
None yet
Development

No branches or pull requests

4 participants