Fixed
Status Update
Comments
se...@google.com <se...@google.com> #2
Yigit, do you have time to fix it?
reemission of the same liveData is racy
reemission of the same liveData is racy
ap...@google.com <ap...@google.com> #3
yea i'll take it.
il...@google.com <il...@google.com> #4
Thanks for the detailed analysis. This may not be an issue anymore since we've started using Main.immediate there but I' not sure; I'll try to create a test case.
Description
Component used: lifecycle-livedata-kt
Version used: 2.3.0-alpha02
Devices/Android versions reproduced on: N/A
According to the release note , a new lint check for the null value of MutableLiveData is released.
However, It seems not available yet.
In addition, I tried the lint check from AOSP source code, but it fails.
The lint check with a local variable is working. But, instance fields like below code is failed.
Part of the stack trace. I will attach the full stack trace file.
(Run
LINT_PRINT_STACKTRACE=true ./gradlew lint
)Thanks