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

HashDTO issue on equal operator #372

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Conversation

plusema86
Copy link
Contributor

Fixed a bug where the equality operator attempted to compare objects of different sizes, leading to a blocking exception when comparing an element at a non-existent index, instead of returning false

Fixed a bug where the equality operator attempted to compare objects of different sizes, leading to a blocking exception when comparing an element at a non-existent index, instead of returning false

final data2 = Uint8List.fromList([1, 2, 3, 4, 5, 6]);
final hashDTO2 = HashDTO(data: data2);

Copy link
Contributor

@jrl351 jrl351 Jan 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For completeness you should probably also test when the left side has more items than the right side.

@jrl351 jrl351 merged commit 381cbf6 into develop Jan 29, 2024
4 checks passed
@jrl351 jrl351 deleted the fix/out-of-range-exception branch January 29, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants