ubipo / osmfocus

Open source tool for examining OpenStreetMap elements by moving around on a map.
Apache License 2.0
43 stars 5 forks source link

NPE in osmapi.Conversion #42

Closed ubipo closed 3 months ago

ubipo commented 2 years ago

Occured around Quarter Jack Surgery in Wimborne.

This is probably because one of the element fields like username is not present.

Stacktrace:

java.lang.NullPointerException: null cannot be cast to non-null type kotlin.String
    at net.pfiers.osmfocus.service.osmapi.ConversionKt.jsonToElements(conversion.kt:71)
    at net.pfiers.osmfocus.service.osmapi.ElementsDownloadManager.processDownload(ElementsDownloadManager.kt:1)
    at net.pfiers.osmfocus.service.osmapi.EnvelopeDownloadManager$download$result$1$1.invokeSuspend(EnvelopeDownloadManager.kt:2)
hamishmb commented 2 years ago

Cheers for making the GitHub issue :)