如果为null,执行一个语句

val data = ...
val email = data["email"] ?: throw IllegalStateException("Email is missing!")

results matching ""

    No results matching ""