wcaokaze
a?.b.toString().length
if (a == null) { null } else { a.b.toString().length }
Czar
a?.let { it.b.toString().length }