transistorsoft / cordova-background-geolocation-lt

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
http://www.transistorsoft.com/shop/products/cordova-background-geolocation
Other
656 stars 277 forks source link

Android app crash in few device #1438

Closed mitul-neosoft closed 2 weeks ago

mitul-neosoft commented 1 month ago

Your Environment

Expected Behavior

plugin should not crash app

Actual Behavior

app crash when geofence add

Steps to Reproduce

  1. Start App and start adding geofence once we have permissions.

Context

I was not able to reproduce in local but there is log on play store.

Debug logs

Logs ``` Exception java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.transistorsoft.locationmanager.geofence.TSGeofence.isPolygon()' on a null object reference at com.transistorsoft.locationmanager.service.GeofencingService.a at com.transistorsoft.locationmanager.service.GeofencingService.a at com.transistorsoft.locationmanager.service.GeofencingService$a$a.a at com.transistorsoft.locationmanager.service.GeofencingService$a$a.$r8$lambda$PJ5EoePOcmtk9xrfLgP7wtZLiok at com.transistorsoft.locationmanager.service.GeofencingService$a$a$$ExternalSyntheticLambda1.run at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644) at java.lang.Thread.run (Thread.java:1012) ```
christocracy commented 1 month ago

4.15.2

Update to latest version. This was fixed in 4.15.3

[Android] Guard against Geofence SQLite query returning null in GeofencingService.

mitul-neosoft commented 1 month ago

That is a quick response. will update the plugin and check. Thanks @christocracy

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open for 30 days with no activity.