amosproj / amos2021ws01-geo-data-search

Natural language and buzzword search on routing and places
MIT License
3 stars 1 forks source link

Bug: IndexOutOfBoundsException when using route length algorithm #216

Closed chrisjherm closed 2 years ago

chrisjherm commented 2 years ago

Query for reproduction: zeige mir eine Route von Nizza mit der Länge von maximal 20000m

chrisjherm commented 2 years ago

Solution: Error has been fixed. Cause: When logging, list elements of the routes found are accessed, but these do not exist because the end point of the searched route would be in the water (sea/lake). The Here API returns us an empty route list and we mistakenly try to access the first list element anyway.