Created
May 23, 2018 16:24
-
-
Save jpitchardu/99931ab7ed668d33156de5ceb28b8218 to your computer and use it in GitHub Desktop.
Null-safety example in Kotlin
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 object: SomeClass? | |
object?.prop1?.prop2?.prop3 ?: "SomeDefaultValue"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment