-
Notifications
You must be signed in to change notification settings - Fork 59
Description
I'm using this plugin in my Xamarin.Forms app. On iOS, everything is working fine! But on Android, I'm experiencing some app crashes. When I open another webview from the webview and navigate backwards, the app crashes with the following exception:
System.NullReferenceException: Object reference not set to an instance of an object. at Xam.Plugin.WebView.Droid.FormsWebViewClient.OnPageFinished (Android.Webkit.WebView view, System.String url) [0x000b8] in C:\Users\ryan.dixon\Source\Repos\Xam.Plugin.Webview\Xam.Plugin.WebView.Droid\FormsWebViewClient.cs:151 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in <19853c43ab794d18ab1a33ecb65b3c4d>:0 at Android.App.SyncContext+<>c__DisplayClass2_0.<Post>b__0 () [0x00000] in /Users/runner/runners/2.159.2/work/1/s/src/Mono.Android/Android.App/SyncContext.cs:35 at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in /Users/runner/runners/2.159.2/work/1/s/src/Mono.Android/Java.Lang/Thread.cs:36 at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in /Users/runner/runners/2.159.2/work/1/s/src/Mono.Android/obj/Release/android-27/mcw/Java.Lang.IRunnable.cs:81 at at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.24(intptr,intptr)
For going back I'm calling the WebView native GoBack(); function.