Skip to content

Conversation

@leonardomoralopez89
Copy link
Contributor

Updated the getIpInfo method to fix the conditional check when evaluating the total hits from the Elasticsearch search result. Changed the condition from hits.total().value() < 0 to hits.total().value() <= 0 to correctly handle cases where no search results are found, preventing potential IndexOutOfBoundsException.

Updated the `getIpInfo` method to fix the conditional check when evaluating the total hits from the Elasticsearch search result. Changed the condition from `hits.total().value() < 0` to `hits.total().value() <= 0` to correctly handle cases where no search results are found, preventing potential `IndexOutOfBoundsException`.
@c3s4rfred c3s4rfred merged commit b2cd8c3 into main May 28, 2024
@c3s4rfred c3s4rfred deleted the bugfix/10.4/693-bug-index-out-of-bound-exception-in-visualization-of-type-coordinate-map branch May 28, 2024 18:30
dayat81 pushed a commit to dayat81/utmstack that referenced this pull request Aug 9, 2025
Updated the `getIpInfo` method to fix the conditional check when evaluating the total hits from the Elasticsearch search result. Changed the condition from `hits.total().value() < 0` to `hits.total().value() <= 0` to correctly handle cases where no search results are found, preventing potential `IndexOutOfBoundsException`.
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.

[BUG] Index out of bound exception in visualization of type Coordinate Map

3 participants