transistorsoft / react-native-background-geolocation

Sophisticated, battery-conscious background-geolocation with motion-detection
http://shop.transistorsoft.com/pages/react-native-background-geolocation
MIT License
2.65k stars 426 forks source link

App is crashing - NullPointerException: Attempt to invoke virtual method 'float java.lang.Float.floatValue()' on a null object reference #2179

Open jakub-oone opened 2 weeks ago

jakub-oone commented 2 weeks ago

Hello Chris,

we got the error "Attempt to invoke virtual method 'float java.lang.Float.floatValue()' on a null object reference"

Stack trace: NullPointerException Attempt to invoke virtual method 'float java.lang.Float.floatValue()' on a null object reference

com.transistorsoft.locationmanager.service.StopTimeoutEvaluator in a at line 1 com.transistorsoft.locationmanager.service.PolygonGeofencingService in c at line 2 com.transistorsoft.locationmanager.service.PolygonGeofencingService in a at line 2 com.transistorsoft.locationmanager.service.PolygonGeofencingService$a in run at line 87 java.util.concurrent.ThreadPoolExecutor in runWorker at line 1145 java.util.concurrent.ThreadPoolExecutor$Worker in run at line 644 java.lang.Thread in run at line 1012

Could you please look at this?

Your Environment

Expected Behavior

App is not crashing

Actual Behavior

App is crashing

Steps to Reproduce

  1. Add some geofences to BackgroundGeolocation.addGeofences(geofences)
  2. Start monitore polygone
  3. App crash after some time (randomly)

Context

Debug logs

Logs ``` PASTE_YOUR_LOGS_HERE ```
christocracy commented 2 weeks ago

I think I see what's causing this.