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

Unhandled exception: Parameter specified as non-null is null: method net.pfiers.osmfocus.service.LocationHelper$getLocation$2$1$1.invoke, parameter loc #35

Closed mirror176 closed 3 months ago

mirror176 commented 2 years ago

Exception details

Message: Parameter specified as non-null is null: method net.pfiers.osmfocus.service.LocationHelper$getLocation$2$1$1.invoke, parameter loc

What happened / what actions did you take before the bug occurred?

-- Please fill here -- Opened program. Pressed current location button. Gave location permission to app. After current location button stopped spinning and current location still was not represented, I pressed it again. This crash then occurred.

Comments

-- Fill here if necessary --

Stack trace

java.lang.NullPointerException: Parameter specified as non-null is null: method net.pfiers.osmfocus.service.LocationHelper$getLocation$2$1$1.invoke, parameter loc
    at net.pfiers.osmfocus.service.LocationHelper$getLocation$2$1$1.invoke(LocationHelper.kt:2)
    at net.pfiers.osmfocus.service.LocationHelper$$ExternalSyntheticLambda2.accept(Unknown Source:2)
    at j$.wrappers.$r8$wrapper$java$util$function$Consumer$-WRP.accept(Unknown Source:2)
    at android.location.LocationManager$GetCurrentLocationTransport$1.operate(LocationManager.java:3154)
    at android.location.LocationManager$GetCurrentLocationTransport$1.operate(LocationManager.java:3151)
    at com.android.internal.listeners.ListenerExecutor.lambda$executeSafely$0(ListenerExecutor.java:127)
    at com.android.internal.listeners.ListenerExecutor$$ExternalSyntheticLambda0.run(Unknown Source:8)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:920)

System / app info

App version: 1.5.0-fdroid
App version code: 150
App build type: release
Android version: 31
Device name: samsung SM-G781V