Bug 41255 - System.NullReferenceException: Object reference not set to an instance of an object
Summary: System.NullReferenceException: Object reference not set to an instance of an ...
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Chris King
Depends on:
Reported: 2016-05-23 13:20 UTC by Saathvi
Modified: 2017-06-20 15:20 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description Saathvi 2016-05-23 13:20:24 UTC
Description of Problem:

System.NullReferenceException: Object reference not set to an instance of an object
  at MyBrowserBox.App+<App>c__AnonStorey0.<>m__1 (System.Object sender, System.EventArgs e) [0x000fb] in /Users/premlatha/Projects/MyBrowserBox/MyBrowserBox/MyBrowserBox.cs:87
  at Xamarin.Forms.Button.Xamarin.Forms.IButtonController.SendClicked () [0x00020] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.ButtonRenderer+ButtonClickListener.OnClick (Android.Views.View v) [0x00015] in <filename unknown>:0
  at Android.Views.View+IOnClickListenerInvoker.n_OnClick_Landroid_view_View_ (IntPtr jnienv, IntPtr native__this, IntPtr native_v) [0x00011] in /Users/builder/data/lanes/3236/ee215fc9/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Views.View.cs:1903
  at at (wrapper dynamic-method) System.Object:6ac90fb8-29ec-4a2e-ab4b-cae7baf88e8f (intptr,intptr,intptr)

Steps to reproduce the problem:
1. button is displayed along with webview. 
2. when button is clicked , I am trying to capture webview url and other details
3. but I am getting above exception in button listener

Actual Results:

Expected Results:

How often does this happen? 

Additional Information:
Comment 1 Prashant Cholachagudda 2016-06-18 16:38:11 UTC

Could you share the sample code demonstrating the problem? It will help us to troubleshoot the issue
Comment 2 Chris King 2017-06-20 15:20:07 UTC
Saathvi, if you're still having this issue please attach a reproduction. Thanks!