Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
In our Xamarin.Forms app, we use WebViews in various places like login flows with OAuth. One of those flows is connecting your facebook account with our backend. While this works on most devices, it fails on Samsung Galaxy S6 (SM-G920F) after the user has entered his credentials with the flowing exception:
System.NullReferenceException: Object reference not set to an instance of an object
at Xamarin.Forms.Platform.Android.WebViewRenderer.UpdateCanGoBackForward () [0x0000c] in <filename unknown>:0
at Xamarin.Forms.Platform.Android.WebViewRenderer+WebClient.ShouldOverrideUrlLoading (Android.Webkit.WebView view, System.String url) [0x0003b] in <filename unknown>:0
at Android.Webkit.WebViewClient.n_ShouldOverrideUrlLoading_Landroid_webkit_WebView_Ljava_lang_String_ (IntPtr jnienv, IntPtr native__this, IntPtr native_view, IntPtr native_url) [0x00019] in /Users/builder/data/lanes/2692/e98e9627/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Webkit.WebViewClient.cs:894
at (wrapper dynamic-method) System.Object:45c3d66f-58bb-4b79-a5ea-c02d11784f0c (intptr,intptr,intptr,intptr)
Steps to Reproduce:
1) Open a WebView with the facebook OAuth flow
2) Enter credentials an press login
Exception is thrown an app crashes.
WebView should get the access token.
Build Date & Hardware:
Version: 18.104.22.168 (Business Edition)
SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 23
Additional Builds an Platforms:
Doesn't occur in Android emulators and Google Nexus 5X and Google Nexus 5
Is this issue still occurring for you on the latest stable versions of everything, and if so, could you please provide a reproduction?
Assigned to you as you were last to request additional info.
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket and attach a project that demonstrates the issue.