SegmentedControl icon indicating copy to clipboard operation
SegmentedControl copied to clipboard

Object reference not set to an instance of an object | Disposing SegmentedControl

Open afzalali15 opened this issue 4 years ago • 0 comments

Hi, Thanks for this controls. When I navigate back from the page (where segmented control is used) the app crashes.

Object reference not set to an instance of an object

at SegmentedControl.FormsPlugin.iOS.SegmentedControlRenderer.OnElementChanged (Xamarin.Forms.Platform.iOS.ElementChangedEventArgs1[TElement] e) [0x00054] in <a904f3d9817940eda6003be744c323cd>:0 at Xamarin.Forms.Platform.iOS.VisualElementRenderer1[TElement].SetElement (TElement element) [0x00172] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:296 at Xamarin.Forms.Platform.iOS.VisualElementRenderer1[TElement].Dispose (System.Boolean disposing) [0x0008c] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:385 at Xamarin.Forms.Platform.iOS.ViewRenderer2[TView,TNativeView].Dispose (System.Boolean disposing) [0x0005c] in D:\a\1\s\Xamarin.Forms.Platform.iOS\ViewRenderer.cs:124 at SegmentedControl.FormsPlugin.iOS.SegmentedControlRenderer.Dispose (System.Boolean disposing) [0x00032] in :0

afzalali15 avatar Feb 12 '21 20:02 afzalali15