From 505109164cc4ce99aa652544d9f899e311614425 Mon Sep 17 00:00:00 2001 From: Sudhi S Date: Mon, 14 Mar 2022 19:53:20 +0530 Subject: [PATCH] Location crash in background --- lib/location_dto.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/location_dto.dart b/lib/location_dto.dart index c78022fe..38d0165c 100644 --- a/lib/location_dto.dart +++ b/lib/location_dto.dart @@ -40,7 +40,7 @@ class LocationDto { json[Keys.ARG_HEADING], json[Keys.ARG_TIME], isLocationMocked, - json[Keys.ARG_PROVIDER], + json.containsKey(Keys.ARG_PROVIDER) ? json[Keys.ARG_PROVIDER] : "", ); }