flutter_inappwebview icon indicating copy to clipboard operation
flutter_inappwebview copied to clipboard

java.lang.NullPointerException: com.pichillilorenzo.flutter_inappwebview.in_app_webview.FlutterWebView$1.onPageFinished(FlutterWebView.java:154)

Open LondonX opened this issue 2 years ago • 1 comments

Environment

Technology Version
Flutter version 3.0.3
Plugin version 5.4.3+7
Android version 6 / 10
iOS version
Xcode version

Device information: Moto X (2nd Gen) (Android 6.0) Mate40 Pro+ (Android 10.0)

Stacktrace/Logcat

Moto X (2nd Gen) (Android 6.0)

Fatal Exception: java.lang.NullPointerException: Attempt to read from field 'com.pichillilorenzo.flutter_inappwebview.in_app_webview.InAppWebViewRenderProcessClient com.pichillilorenzo.flutter_inappwebview.in_app_webview.InAppWebView.inAppWebViewRenderProcessClient' on a null object reference at com.pichillilorenzo.flutter_inappwebview.in_app_webview.FlutterWebView$1.onPageFinished(FlutterWebView.java:154) at com.android.webview.chromium.WebViewContentsClientAdapter.onPageFinished(WebViewContentsClientAdapter.java:561) at org.chromium.android_webview.AwContentsClientCallbackHelper$MyHandler.handleMessage(AwContentsClientCallbackHelper.java:188) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5443) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)

Mate40 Pro+ (Android 10.0)

Fatal Exception: java.lang.NullPointerException: Attempt to read from field 'com.pichillilorenzo.flutter_inappwebview.in_app_webview.InAppWebViewRenderProcessClient com.pichillilorenzo.flutter_inappwebview.in_app_webview.InAppWebView.inAppWebViewRenderProcessClient' on a null object reference at com.pichillilorenzo.flutter_inappwebview.in_app_webview.FlutterWebView$1.onPageFinished(FlutterWebView.java:154) at com.android.webview.chromium.WebViewContentsClientAdapter.onPageFinished(WebViewContentsClientAdapter.java:690) at org.chromium.android_webview.AwContentsClientCallbackHelper$MyHandler.handleMessage(AwContentsClientCallbackHelper.java:165) at android.os.Handler.dispatchMessage(Handler.java:119) at android.os.Looper.loop(Looper.java:207) at android.app.ActivityThread.main(ActivityThread.java:5765) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)

LondonX avatar Jul 01 '22 00:07 LondonX

👋 @LondonX

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

github-actions[bot] avatar Jul 01 '22 00:07 github-actions[bot]