I have a list of items (think email list) that can be deleted on right swipe. The problem is, if a user goes too fast to delete the items, Fuse crashes:
Preview detected an unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object
at Fuse.Gestures.Internal.Swiper.EndInteraction () [0x00000] in <filename unknown>:0
at Fuse.Gestures.Internal.Swiper.OnLostCapture () [0x00000] in <filename unknown>:0
at Fuse.Input.Pointer.GetHardCapturer (Int32 pointIndex) [0x00000] in <filename unknown>:0
at Fuse.Input.Pointer.RouteToCapturer (Fuse.Input.PointerEventData args) [0x00000] in <filename unknown>:0
at Fuse.Input.Pointer.RoutePointerEvent (Fuse.Input.PointerEventData plainEvent, Fuse.Node root) [0x00000] in <filename unknown>:0
at Fuse.Input.Pointer.RaiseMoved (Fuse.Node root, Fuse.Input.PointerEventData data) [0x00000] in <filename unknown>:0
at Fuse.Desktop.DesktopRootViewport.OnPointerMoved (System.Object sender, Uno.Platform.PointerEventArgs args) [0x00000] in <filename unknown>:0
ERROR: Object reference not set to an instance of an object
System.NullReferenceException occured.
at Fuse.Gestures.Internal.Swiper.EndInteraction () [0x00000] in <filename unknown>:0
at Fuse.Gestures.Internal.Swiper.OnLostCapture () [0x00000] in <filename unknown>:0
at Fuse.Input.Pointer.GetHardCapturer (Int32 pointIndex) [0x00000] in <filename unknown>:0
at Fuse.Input.Pointer.RouteToCapturer (Fuse.Input.PointerEventData args) [0x00000] in <filename unknown>:0
at Fuse.Input.Pointer.RoutePointerEvent (Fuse.Input.PointerEventData plainEvent, Fuse.Node root) [0x00000] in <filename unknown>:0
at Fuse.Input.Pointer.RaiseMoved (Fuse.Node root, Fuse.Input.PointerEventData data) [0x00000] in <filename unknown>:0
at Fuse.Desktop.DesktopRootViewport.OnPointerMoved (System.Object sender, Uno.Platform.PointerEventArgs args) [0x00000] in <filename unknown>:0
Looking at the error it doesn’t look that my code is faulty, but I’ll take any pointer to fix it.