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

fix exception when intent is null #243

Merged
merged 1 commit into from
Nov 19, 2018

Conversation

rydein
Copy link
Contributor

@rydein rydein commented Nov 19, 2018

E/AndroidRuntime(21545): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:4360)
E/AndroidRuntime(21545): 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:4402)
E/AndroidRuntime(21545): 	at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
E/AndroidRuntime(21545): 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
E/AndroidRuntime(21545): 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
E/AndroidRuntime(21545): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
E/AndroidRuntime(21545): 	at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(21545): 	at android.os.Looper.loop(Looper.java:193)
E/AndroidRuntime(21545): 	at android.app.ActivityThread.main(ActivityThread.java:6669)
E/AndroidRuntime(21545): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(21545): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/AndroidRuntime(21545): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/AndroidRuntime(21545): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getDataString()' on a null object reference
E/AndroidRuntime(21545): 	at com.flutter_webview_plugin.WebviewManager$ResultHandler.handleResult(WebviewManager.java:46)
E/AndroidRuntime(21545): 	at com.flutter_webview_plugin.FlutterWebviewPlugin.onActivityResult(FlutterWebviewPlugin.java:241)
E/AndroidRuntime(21545): 	at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:210)
E/AndroidRuntime(21545): 	at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:139)
E/AndroidRuntime(21545): 	at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:138)
E/AndroidRuntime(21545): 	at com.example.MainActivity.onActivityResult(MainActivity.kt:77)
E/AndroidRuntime(21545): 	at android.app.Activity.dispatchActivityResult(Activity.java:7454)
E/AndroidRuntime(21545): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:4353)
E/AndroidRuntime(21545): 	... 11 more

@charafau charafau merged commit f613d94 into fluttercommunity:master Nov 19, 2018
@charafau
Copy link
Collaborator

Thanks for contribution!

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.

2 participants