compose-shimmer icon indicating copy to clipboard operation
compose-shimmer copied to clipboard

NullPointerException on Xiaomi

Open TarasOryshhij opened this issue 1 year ago • 1 comments

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)

Снимок экрана 2023-11-30 в 10 23 53

Version: api "com.valentinilk.shimmer:compose-shimmer:1.2.0"

TarasOryshhij avatar Nov 30 '23 09:11 TarasOryshhij

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.

valentinilk avatar Apr 01 '24 12:04 valentinilk