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

Avoid null pointer exception after webview is disposed #116

Merged
merged 1 commit into from
Oct 24, 2019

Conversation

robsonmeemo
Copy link
Contributor

Fixes #104

@peter-meemo
Copy link

IIUC, the webview being gone at this point means that we cannot pass a value back from dart into the javascript; this PR will stop the error message but not resolve that issue.

@robsonmeemo
Copy link
Contributor Author

But I think it's the responsibility of the library user to keep the webview around for long enough to allow the javascript side to deal with it. Maybe make an extra javascript handler call to dart to signal you're done and the webview can be closed.

@pichillilorenzo pichillilorenzo merged commit 07f63a5 into pichillilorenzo:master Oct 24, 2019
This was referenced Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

java.lang.NullPointerException: Attempt to read from field 'FlutterWebView.webView' on a null object reference
3 participants