Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] fix RangeError when _sortedElements is empty #164

Merged
merged 1 commit into from
Apr 9, 2023

Conversation

magazmj
Copy link
Contributor

@magazmj magazmj commented Oct 15, 2022

when _sortedElements is empty throw RangeError.

The following RangeError was thrown during a scheduler callback:
RangeError (index): Invalid value: Valid value range is empty: 0

When the exception was thrown, this was the stack:
#0 List.[] (dart:core-patch/growable_array.dart:264:36)
#1 _GroupedListViewState._scrollListener (package:grouped_list/grouped_list.dart:366:48)
#2 _GroupedListViewState.build. (package:grouped_list/grouped_list.dart:272:9)
#3 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1175:15)
#4 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1113:9)
#5 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1015:5)
#6 _invoke (dart:ui/hooks.dart:148:13)
#7 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:318:5)

when _sortedElements is empty throw RangeError.
@Dimibe Dimibe merged commit 846d83b into Dimibe:main Apr 9, 2023
@Dimibe Dimibe added the bug Something isn't working label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants