From 8fce76656d94f879ec5c62dd83eba4c82e58921c Mon Sep 17 00:00:00 2001 From: Armin Date: Wed, 23 Oct 2024 16:09:20 +0100 Subject: [PATCH] [RFR-1187] Handle NoLocationData exception --- .../main/kotlin/de/cyface/synchronization/SyncPerformer.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/synchronization/src/main/kotlin/de/cyface/synchronization/SyncPerformer.kt b/synchronization/src/main/kotlin/de/cyface/synchronization/SyncPerformer.kt index d4655cb7..5bf596cd 100644 --- a/synchronization/src/main/kotlin/de/cyface/synchronization/SyncPerformer.kt +++ b/synchronization/src/main/kotlin/de/cyface/synchronization/SyncPerformer.kt @@ -317,6 +317,12 @@ internal class SyncPerformer(private val context: Context, private val fromBackg Result.UPLOAD_SKIPPED } + is NoLocationData -> { + syncResult.stats.numSkippedEntries++ + Log.d(TAG, e.message!!) + Result.UPLOAD_SKIPPED + } + is ConflictException -> { syncResult.stats.numSkippedEntries++ // We consider the upload successful and mark the measurement as synced