inaturalist / iNaturalistAndroid

Android app for iNaturalist.org
https://market.android.com/details?id=org.inaturalist.android
MIT License
165 stars 57 forks source link

NullPointerException in ObservationEditor.setCurrentLocation #1223

Open kueda opened 2 years ago

kueda commented 2 years ago

https://console.firebase.google.com/u/0/project/inaturalist-ios/crashlytics/app/android:org.inaturalist.android/issues/7dfbbb2dad659eece09dcfea887e2461

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.app.Activity.getIntent()' on a null object reference
       at org.inaturalist.android.ObservationEditor.setCurrentLocation(ObservationEditor.java:2622)
       at org.inaturalist.android.ObservationEditor.handleNewLocation(ObservationEditor.java:2468)
       at org.inaturalist.android.ObservationEditor.access$4200(ObservationEditor.java:147)
       at org.inaturalist.android.ObservationEditor$31.onLocationChanged(ObservationEditor.java:2444)
       at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:388)
       at android.location.LocationManager$ListenerTransport.access$000(LocationManager.java:300)
       at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:316)