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

FixIndexIfRequired in NativeListItem<T> might set the index under zero and cause an exception #165

Closed
justalemon opened this issue Feb 16, 2024 · 0 comments
Labels
priority: p1 high A bug that might cause crashes or a highly needed feature status: completed The feature has been completed of the bug has been patched type: bug This is a bug

Comments

@justalemon
Copy link
Member

[01:14:03] [ERROR] Caught unhandled exception:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List1.get_Item(Int32 index) at LemonUI.Menus.NativeListItem1.get_SelectedItem() in G:\Grand Theft Auto\LemonUI\LemonUI\Menus\NativeListItem{T}.cs:line 63
at LemonUI.Menus.NativeListItem1.UpdateIndex() in G:\Grand Theft Auto\LemonUI\LemonUI\Menus\NativeListItem{T}.cs:line 159 at LemonUI.Menus.NativeListItem1.Add(Int32 position, T item) in G:\Grand Theft Auto\LemonUI\LemonUI\Menus\NativeListItem{T}.cs:line 202
at LemonUI.Menus.NativeListItem`1.Add(T item) in G:\Grand Theft Auto\LemonUI\LemonUI\Menus\NativeListItem{T}.cs:line 177

@justalemon justalemon added status: confirmed The bug has been tested and confirmed priority: p1 high A bug that might cause crashes or a highly needed feature type: bug This is a bug labels Feb 16, 2024
@justalemon justalemon added this to the 2.1 milestone Feb 16, 2024
@justalemon justalemon added status: completed The feature has been completed of the bug has been patched and removed status: confirmed The bug has been tested and confirmed labels May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p1 high A bug that might cause crashes or a highly needed feature status: completed The feature has been completed of the bug has been patched type: bug This is a bug
Projects
None yet
Development

No branches or pull requests

1 participant