diff --git a/lib/services/location_service.dart b/lib/services/location_service.dart index 2dad8a46b..65f12b09f 100644 --- a/lib/services/location_service.dart +++ b/lib/services/location_service.dart @@ -209,6 +209,9 @@ class GPSData { if (lat == null || long == null) { return null; } + if (lat!.length < 3 || long!.length < 3) { + return null; + } final latSign = (latRef ?? 'N') == "N" ? 1 : -1; final longSign = (longRef ?? 'E') == "E" ? 1 : -1; return Location(