Created
December 28, 2019 21:24
-
-
Save RBusarow/54ec23175be0f215ed1dea701ace4a89 to your computer and use it in GitHub Desktop.
example of getting a null value from a non-nullable LiveData
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val someLiveData = MutableLiveData<String>() | |
val currentValue = someLiveData.value | |
println(currentValue) // null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment