Skip to content

Instantly share code, notes, and snippets.

@RBusarow
Created December 28, 2019 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RBusarow/54ec23175be0f215ed1dea701ace4a89 to your computer and use it in GitHub Desktop.
Save RBusarow/54ec23175be0f215ed1dea701ace4a89 to your computer and use it in GitHub Desktop.
example of getting a null value from a non-nullable LiveData
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