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

Crashing on Android - Fatal Exception: java.lang.RuntimeException - Caused by java.lang.NullPointerException #168

Closed
oliverbytes opened this issue Sep 27, 2019 · 2 comments

Comments

@oliverbytes
Copy link

**Fatal Exception: java.lang.RuntimeException
Unable to start activity ComponentInfo{com.stackwares.android.storysaver.facebook/com.pichillilorenzo.flutter_inappbrowser.InAppBrowserActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void io.flutter.plugin.common.MethodChannel.invokeMethod(java.lang.String, java.lang.Object)' on a null object reference**

android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2646)
android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2707)
android.app.ActivityThread.-wrap12 (ActivityThread.java)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1460)
android.os.Handler.dispatchMessage (Handler.java:102)
android.os.Looper.loop (Looper.java:154)
android.app.ActivityThread.main (ActivityThread.java:6077)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:865)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:755)
**Caused by java.lang.NullPointerException
Attempt to invoke virtual method 'void io.flutter.plugin.common.MethodChannel.invokeMethod(java.lang.String, java.lang.Object)' on a null object reference
com.pichillilorenzo.flutter_inappbrowser.InAppBrowserActivity.onCreate (InAppBrowserActivity.java)**

android.app.Activity.performCreate (Activity.java:6705)
android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1119)
android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2599)
android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2707)
android.app.ActivityThread.-wrap12 (ActivityThread.java)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1460)
android.os.Handler.dispatchMessage (Handler.java:102)
android.os.Looper.loop (Looper.java:154)
android.app.ActivityThread.main (ActivityThread.java:6077)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:865)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:755)
@pichillilorenzo
Copy link
Owner

Now it should be fixed in 2.0.0. Also, this plugin changed its name to flutter_inappwebview. The current latest version now is 2.1.0+1. So, you can change your dependency influtter_inappwebview: ^2.1.0+1.

This was referenced Jul 6, 2020
Copy link

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 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants