pichillilorenzo / flutter_inappwebview

A Flutter plugin that allows you to add an inline webview, to use a headless webview, and to open an in-app browser window.
https://inappwebview.dev
Apache License 2.0
3.23k stars 1.58k forks source link

Unable to start activity ComponentInfo{com.sf.iapp/com.pichillilorenzo.flutter_inappwebview.in_app_browser.InAppBrowserActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference #985

Closed Super-Bin closed 4 days ago

Super-Bin commented 3 years ago

Environment

Technology Version
Flutter version 2.2.0
Plugin version 5.3.2
Android version 10
iOS version
Xcode version

Device information:

Description

Expected behavior: App shouldn't be crash.

Current behavior: Here is the log from the Firebase Crashlytics-

Steps to reproduce

  1. This
  2. Than that
  3. Then

Images

inapp_webview

Stacktrace/Logcat

Caused by java.lang.NullPointerException
Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
com.pichillilorenzo.flutter_inappwebview.in_app_browser.InAppBrowserActivity.onCreate (InAppBrowserActivity.java:70)
android.app.Activity.performCreate (Activity.java:8085)
android.app.Activity.performCreate (Activity.java:8073)
android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1320)
android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3850)
android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:4056)
android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:91)
android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:149)
android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:103)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:2464)
android.os.Handler.dispatchMessage (Handler.java:110)
android.os.Looper.loop (Looper.java:219)
android.app.ActivityThread.main (ActivityThread.java:8299)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:513)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1052)
![inapp_webview](https://user-images.githubusercontent.com/26457469/134321416-c3c5ed42-02f2-4ddc-bf79-bf9bf8221d30.png)

reference:https://github.com/pichillilorenzo/flutter_inappwebview/issues/665

github-actions[bot] commented 3 years ago

👋 @Super-Bin

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!

macortesn commented 2 years ago

Same issue 😢

nietsmmar commented 2 years ago

I got the same issue

pansitwattana commented 2 years ago

I also got this crash error

flutter_inappwebview: ^5.3.2 Flutter version: 2.2.0 Android: 8.1.0 Device: Nexus 5X

github-actions[bot] commented 4 days ago

This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it.