Skip to content

Commit

Permalink
fix: [ANDROAPP-6717] Crash when syncing a TEI from map
Browse files Browse the repository at this point in the history
  • Loading branch information
Balcan authored and xavimolloy committed Dec 19, 2024
1 parent b01db32 commit 069181b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class GranularSyncRepository(

ConflictType.TEI -> {
val enrollment = d2.enrollment(syncContext.recordUid())
d2.observeTei(enrollment?.trackedEntityInstance()!!)
d2.observeTei(enrollment?.trackedEntityInstance() ?: syncContext.recordUid())
.map { it.aggregatedSyncState() }
}

Expand Down

0 comments on commit 069181b

Please sign in to comment.