Skip to content

Commit

Permalink
Log warning when location is null
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesmac committed Nov 8, 2024
1 parent ff57781 commit 73ac27b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ class XyoLocationPayload (
fusedLocationClient.lastLocation
.addOnSuccessListener { location: Location? ->
if (location != null) {
Log.w("xyoClient", "Location was null")
coordinates = Coordinates(
location.accuracy,
location.altitude,
Expand Down

0 comments on commit 73ac27b

Please sign in to comment.