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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NullPointerException: com.pichillilorenzo.flutter_inappwebview.in_app_webview.InAppWebViewRenderProcessClient$1.success(InAppWebViewRenderProcessClient.java:37) #757

Closed
4 tasks done
Doflatango opened this issue Mar 26, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@Doflatango
Copy link
Contributor

Environment

Technology Version
Flutter version 2.0.3
Plugin version 5.2.1+1
Android version 10
iOS version
Xcode version

Device information:
MIUI 12.0.2

Seems happens when loading a page for a long time.

Stacktrace/Logcat

E/MethodChannel#com.pichillilorenzo/flutter_inappwebview_2(11684): Failed to handle method call result
E/MethodChannel#com.pichillilorenzo/flutter_inappwebview_2(11684): java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object java.util.Map.get(java.lang.Object)' on a null object reference
E/MethodChannel#com.pichillilorenzo/flutter_inappwebview_2(11684): 	at com.pichillilorenzo.flutter_inappwebview.in_app_webview.InAppWebViewRenderProcessClient$1.success(InAppWebViewRenderProcessClient.java:37)
E/MethodChannel#com.pichillilorenzo/flutter_inappwebview_2(11684): 	at io.flutter.plugin.common.MethodChannel$IncomingResultHandler.reply(MethodChannel.java:210)
E/MethodChannel#com.pichillilorenzo/flutter_inappwebview_2(11684): 	at io.flutter.embedding.engine.dart.DartMessenger.handlePlatformMessageResponse(DartMessenger.java:105)
E/MethodChannel#com.pichillilorenzo/flutter_inappwebview_2(11684): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessageResponse(FlutterJNI.java:829)
E/MethodChannel#com.pichillilorenzo/flutter_inappwebview_2(11684): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#com.pichillilorenzo/flutter_inappwebview_2(11684): 	at android.os.MessageQueue.next(MessageQueue.java:336)
E/MethodChannel#com.pichillilorenzo/flutter_inappwebview_2(11684): 	at android.os.Looper.loop(Looper.java:180)
E/MethodChannel#com.pichillilorenzo/flutter_inappwebview_2(11684): 	at android.app.ActivityThread.main(ActivityThread.java:7562)
E/MethodChannel#com.pichillilorenzo/flutter_inappwebview_2(11684): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#com.pichillilorenzo/flutter_inappwebview_2(11684): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
E/MethodChannel#com.pichillilorenzo/flutter_inappwebview_2(11684): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
@Doflatango Doflatango added the bug Something isn't working label Mar 26, 2021
@pichillilorenzo
Copy link
Owner

Oh wow, I forgot to put a test on possible null value! Thanks for reporting this!

@pichillilorenzo pichillilorenzo changed the title Attempt to invoke interface method 'java.lang.Object java.util.Map.get(java.lang.Object)' on a null object reference java.lang.NullPointerException: com.pichillilorenzo.flutter_inappwebview.in_app_webview.InAppWebViewRenderProcessClient$1.success(InAppWebViewRenderProcessClient.java:37) Mar 26, 2021
Copy link

github-actions bot commented Nov 5, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants