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

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
4 tasks done
Super-Bin opened this issue Sep 22, 2021 · 6 comments
Labels
bug Something isn't working stale

Comments

@Super-Bin
Copy link

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:#665

@Super-Bin Super-Bin added the bug Something isn't working label Sep 22, 2021
@github-actions
Copy link

👋 @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
Copy link

Same issue 😢

@nietsmmar
Copy link

I got the same issue

@pansitwattana
Copy link

I also got this crash error

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

Copy link

github-actions bot commented Oct 5, 2024

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.

@github-actions github-actions bot added the stale label Oct 5, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2024
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 Oct 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

4 participants