Skip to content

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

Description

@afzalali15

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions