Fix crash on Android 6

Change-Id: Ie32c3dbc4b22afd673c5dcf581f8743f27d5bfc3
This commit is contained in:
SpiritCroc 2022-03-19 11:51:19 +01:00
parent a90e1a15eb
commit bea4cca2ab
1 changed files with 1 additions and 1 deletions

View File

@ -493,7 +493,7 @@ internal class TimelineChunk(private val chunkEntity: ChunkEntity,
for (range in modifications) {
for (modificationIndex in (range.startIndex until range.startIndex + range.length)) {
val updatedEntity = results[modificationIndex] ?: continue
val displayIndex = builtEventsIndexes.getOrDefault(updatedEntity.eventId, null)
val displayIndex = builtEventsIndexes[updatedEntity.eventId]
if (displayIndex == null) {
dimber.w{"TimelineChunk.handleDatabaseChangeSet.$dbgId: skip modification for ${updatedEntity.eventId} at $modificationIndex, not found in chunk"}
continue