diff --git a/android/src/com/mapswithme/maps/background/WorkerService.java b/android/src/com/mapswithme/maps/background/WorkerService.java index 277731debe..0fdd55ec5e 100644 --- a/android/src/com/mapswithme/maps/background/WorkerService.java +++ b/android/src/com/mapswithme/maps/background/WorkerService.java @@ -22,6 +22,9 @@ public class WorkerService extends IntentService private static final SharedPreferences PREFS = MwmApplication.prefs(); + private final boolean mArePlatformAndCoreInitialized = + MwmApplication.get().arePlatformAndCoreInitialized(); + /** * Starts this service to upload map edits to osm servers. */ @@ -62,6 +65,9 @@ public class WorkerService extends IntentService if (TextUtils.isEmpty(action)) return; + if (!mArePlatformAndCoreInitialized) + return; + switch (action) { case ACTION_UPLOAD_OSM_CHANGES: