eygraber
07/02/2017, 7:09 PMString.isNullOrBlank
smart cast to not null? For instance, the following function won't compile:
class Test(val name: String?)
fun test(test: Test): String {
val name = test.name
if(name.isNullOrBlank()) {
"null or blank"
}
else {
name
}
}