-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
InAppBrowserActivity.onCreate NullPointerException - Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference #665
Comments
Same issue here |
@slorop41314 Are you using the latest version available from pub.dev? could you post the error logs here? |
Plugin version- @pichillilorenzo Hey, I found again a crash on firebase with latest version of the plugin, pleasee have a look at it, if needed, I will share more info from crashlytics |
@ycv005 Ok I checked that line of code but it doesn't make any sense to me. It's very strange. |
@pichillilorenzo I have only used |
You can try new version 5.2.0 |
@pichillilorenzo Hi, I have a similar crash on firebase.
Upgrading the version didn’t change anything.
Can you please have a look at the issue. Plugin version - flutter_inappwebview: 5.3.0 |
@dkunkic This is another issue related to the |
This can be reproduced by starting InAppBrowserActivity by shell,It may happen in automated testing |
@ZimmerZhou I have automated integration tests and these errors don't occur at all. Could you elaborate more? Make a reproducible example with steps, please. |
Simply run "adb shell am start -n YOUR_PACKAGE_NAME/com.pichillilorenzo.flutter_inappwebview.InAppBrowser.InAppBrowserActivity",BTW,You need to set "exported = true" with InAppBrowserActivity,or you will get a permission error. |
@ZimmerZhou Well, you cannot simply start that activity like this. You MUST use the API of this plugin otherwise it won't work and you will have a null pointer exception, that is the correct behavior because if you start it this way, the |
I agree, but what if we can prevent exception by just adding a toast and finishing activity? |
Nope, if a null pointer exception is occurring, that's the correct behavior and that means you are doing something that is not correct, such as the example you made above. So, in that case, required bundle data is missing to make that activity work properly. |
Plugin version- flutter_inappwebview: ^5.3.2 |
I got the same error! :( With lib verison ^5.3.2 and flutter 2.5.3. Why is this issue closed? |
same issue |
Same issue :(. any update? |
I also got this crash error flutter_inappwebview: ^5.3.2 |
Same issue |
same issue |
1 similar comment
same issue |
Same issue |
The issue is still present |
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. |
Environment
Device information:
Description
App got crash while running the app.
Expected behavior:
App shouldn't be crash.
Current behavior:
Here is the log from the Firebase Crashlytics-
HIGHLIGHTED ERROR
If you need more info let me know.
@pichillilorenzo please fix it before next release of the plugin. Highly appreciated for the fix
The text was updated successfully, but these errors were encountered: