compose-shimmer
compose-shimmer copied to clipboard
NullPointerException on Xiaomi
Fatal Exception: java.lang.NullPointerException: at androidx.compose.runtime.snapshots.SnapshotStateObserver$readObserver$1.invoke(SnapshotStateObserver.kt:164) at androidx.compose.runtime.snapshots.SnapshotStateObserver$readObserver$1.invoke(SnapshotStateObserver.kt:161) at androidx.compose.runtime.snapshots.SnapshotKt.readable(Snapshot.kt:1900) at androidx.compose.runtime.SnapshotMutableStateImpl.getValue(SnapshotState.kt:135) at androidx.compose.animation.core.AnimationState.getValue(AnimationState.kt:344) at androidx.compose.animation.core.Animatable.getValue(Animatable.kt:79) at com.valentinilk.shimmer.ShimmerEffect.draw(ShimmerEffect.kt:72) at com.valentinilk.shimmer.ShimmerModifier.draw(ShimmerModifier.kt:45)
Version: api "com.valentinilk.shimmer:compose-shimmer:1.2.0"
Unfortunately this seems to be a bug within compose: https://issuetracker.google.com/issues/298159434
Let me know if the issues still persists with shimmer 1.3.0
. If it does, I'll wrap it with a try & catch.