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

An ArrayIndexOutOfBoundsException occurred when I used the method withReomved(Collection<IPRange>) #14

Open
XML-FJ opened this issue Aug 14, 2023 · 1 comment

Comments

@XML-FJ
Copy link

XML-FJ commented Aug 14, 2023

Hello, when I used the method withRemoved(Collection<IPRange> ranges), if this IPRange All removed by ranges, and ranges still have elements, ret.remove() will throw an ArrayIndexOutOfBoundsException. If ret.size equals to 0, it should return an empty list in advance, similar to the method withRemoved(IPRange).

@maltalex
Copy link
Owner

@XML-FJ Thanks for the bug report.

I haven't touched this code (nor Java for that matter) for years now. So, it took me a while to find and set up the tooling and the necessary bits and pieces to work on it.

I patched the issue in bc2ecc9 and released v0.3.1, which should show up on Maven Central within a few hours.

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

No branches or pull requests

2 participants