Fix crash on Android 6
Change-Id: Ie32c3dbc4b22afd673c5dcf581f8743f27d5bfc3
This commit is contained in:
parent
a90e1a15eb
commit
bea4cca2ab
@ -493,7 +493,7 @@ internal class TimelineChunk(private val chunkEntity: ChunkEntity,
|
|||||||
for (range in modifications) {
|
for (range in modifications) {
|
||||||
for (modificationIndex in (range.startIndex until range.startIndex + range.length)) {
|
for (modificationIndex in (range.startIndex until range.startIndex + range.length)) {
|
||||||
val updatedEntity = results[modificationIndex] ?: continue
|
val updatedEntity = results[modificationIndex] ?: continue
|
||||||
val displayIndex = builtEventsIndexes.getOrDefault(updatedEntity.eventId, null)
|
val displayIndex = builtEventsIndexes[updatedEntity.eventId]
|
||||||
if (displayIndex == null) {
|
if (displayIndex == null) {
|
||||||
dimber.w{"TimelineChunk.handleDatabaseChangeSet.$dbgId: skip modification for ${updatedEntity.eventId} at $modificationIndex, not found in chunk"}
|
dimber.w{"TimelineChunk.handleDatabaseChangeSet.$dbgId: skip modification for ${updatedEntity.eventId} at $modificationIndex, not found in chunk"}
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user