Checking for null in conditions. First, you can explicitly check whether b is null , and handle the two options separately: val l = if (b != null) b.length ...
確定! 回上一頁