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

Crash when try select file from webview input on Android #867

Closed
4 tasks done
Ser1ous opened this issue May 31, 2021 · 2 comments
Closed
4 tasks done

Crash when try select file from webview input on Android #867

Ser1ous opened this issue May 31, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@Ser1ous
Copy link
Contributor

Ser1ous commented May 31, 2021

Environment

Technology Version
Flutter version 2.0.4
Plugin version 5.3.2
Android version 10
iOS version X
Xcode version X

Device information:

Description

Expected behavior: open chose file window

Current behavior: crash application

Steps to reproduce

  1. Run application webview with form input file
  2. Click on input
  3. Crash app

Stacktrace/Logcat

W/System.err(25522): java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference W/System.err(25522): at com.pichillilorenzo.flutter_inappwebview.in_app_webview.InAppWebViewChromeClient.arrayContainsString(InAppWebViewChromeClient.java:1007) W/System.err(25522): at com.pichillilorenzo.flutter_inappwebview.in_app_webview.InAppWebViewChromeClient.acceptsVideo(InAppWebViewChromeClient.java:1002) W/System.err(25522): at com.pichillilorenzo.flutter_inappwebview.in_app_webview.InAppWebViewChromeClient.startPhotoPickerIntent(InAppWebViewChromeClient.java:888) W/System.err(25522): at com.pichillilorenzo.flutter_inappwebview.in_app_webview.InAppWebViewChromeClient.onShowFileChooser(InAppWebViewChromeClient.java:758) W/System.err(25522): at ca.runFileChooser(chromium-TrichromeWebViewGoogle.aab-stable-443021033:10) W/System.err(25522): at android.os.MessageQueue.nativePollOnce(Native Method) W/System.err(25522): at android.os.MessageQueue.next(MessageQueue.java:336) W/System.err(25522): at android.os.Looper.loop(Looper.java:181) W/System.err(25522): at android.app.ActivityThread.main(ActivityThread.java:7561) W/System.err(25522): at java.lang.reflect.Method.invoke(Native Method) W/System.err(25522): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) W/System.err(25522): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)

@Ser1ous Ser1ous added the bug Something isn't working label May 31, 2021
@github-actions
Copy link

👋 @Ser1ous

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!

@Ser1ous Ser1ous changed the title Crush when try select file from webview input on Android Crash when try select file from webview input on Android May 31, 2021
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 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants