When is a nullable value not nullable? Somewhat co...
# getting-started
v
When is a nullable value not nullable? Somewhat confused by these two messages in Android Studio - in the middle of a
?.let { }
block, no less. The value from the repository is hypothetically null, but I thought the let block would have handled that.
c
Does look odd on the face of it. Either way though you should be using
it
inside the block which should make the problem go away.
v
Oh yeah... Oops.
e
in case 2, that's Kotlin's smart casting at play in case 1, that's a flaw in Android lint; https://issuetracker.google.com/issues/219577232 and other issues filed