FriedrichFroebel/cmanager

NullPointerException within Okapi.getCachesAround and OcUtil.findSingleGeocache

Closed this issue · 1 comments

There have been reports about NullPointerExceptions in the mentioned methods if there are no search results. This seems a bit strange as this was the first report about this, but I would have expected more reports in this widely used features. The reports have been about Java 15, so this might be related to changes introduced there and should be investigated further as it might affect other parts of the source code as well.

As a first step, we should probably add a test for this as there is none at the moment. Some quick fixes for the reported source positions have been committed already.

A corresponding test case has been added for OcUtil.