karvulf / flutter-reorderable-grid-view

BSD 3-Clause "New" or "Revised" License
158 stars 23 forks source link

_ReorderableBuilderState._checkForCollisions throws null cast error #41

Closed meomap closed 2 years ago

meomap commented 2 years ago

Hello, we noticed this exception thrown up at a rate of 1/1000 users . Probably an edge case and not a fatal one.

flutter_reorderable_grid_view: ^3.1.1

Sentry stacktrace:

_CastError: Null check operator used on a null value
  split_config.arm64_v8a.apk0x74955bda74 _ReorderableBuilderState._checkForCollisions (reorderable_builder.dart:483)
  split_config.arm64_v8a.apk0x74955bd814 _ReorderableBuilderState._checkForCollisions (reorderable_builder.dart:482)
  split_config.arm64_v8a.apk0x74955be630 _ReorderableScrollingListenerState._handleDragUpdate (reorderable_scrolling_listener.dart:118)
  split_config.arm64_v8a.apk0x74955be4ec _ReorderableScrollingListenerState.build.<T> (reorderable_scrolling_listener.dart:77)
  split_config.arm64_v8a.apk0x7495490d6c RenderPointerListener.handleEvent (proxy_box.dart:2914)
  split_config.arm64_v8a.apk0x74958db90c GestureBinding.dispatchEvent (binding.dart:425)
  split_config.arm64_v8a.apk0x74952b36d8 RendererBinding.dispatchEvent (binding.dart:329)
  split_config.arm64_v8a.apk0x74952b361c GestureBinding._handlePointerEventImmediately (binding.dart:380)
  split_config.arm64_v8a.apk0x74952b3220 GestureBinding.handlePointerEvent (binding.dart:344)
  split_config.arm64_v8a.apk0x7495353640 GestureBinding._handlePointerDataPacket (binding.dart:285)
  split_config.arm64_v8a.apk0x7495353544 GestureBinding._handlePointerDataPacket (binding.dart:280)
  split_config.arm64_v8a.apk0x749588ef9c _rootRunUnary (zone.dart:1442)
  split_config.arm64_v8a.apk0x74951c2388 _rootRunUnary (zone.dart:1432)
  split_config.arm64_v8a.apk0x7495792d98 _CustomZone.runUnary (zone.dart:1335)
  split_config.arm64_v8a.apk0x74959b95a4 _CustomZone.runUnaryGuarded (zone.dart:1244)
  split_config.arm64_v8a.apk0x74951e7ae4 _invoke1 (hooks.dart:170)
  split_config.arm64_v8a.apk0x74951fd7b0 PlatformDispatcher._dispatchPointerDataPacket (platform_dispatcher.dart:331)
  split_config.arm64_v8a.apk0x74951fd728 _dispatchPointerDataPacket (hooks.dart:94)
karvulf commented 2 years ago

Hello @meomap,

thank you for opening this issue. I will look into it and try to fix it 👍

karvulf commented 2 years ago

I made an extra check with the new version 3.1.2. If there are any other issues, feel free to open a new issue! Thanks again @meomap

meomap commented 2 years ago

Awesome. Thank you very much for your quick support @karvulf