hi guys, I am migrating my code from M14 to Beta a...
# language-proposals
d
hi guys, I am migrating my code from M14 to Beta and I noticed one problem. I have the following code
Copy code
val mutableType = object : TypeToken<MutableList<String>>() {}.type
        val list: MutableList<String> = gson.fromJson(jsonEmails, mutableType) ?: arrayListOf()
After migration my IDE inform me about useless
?: arrayListOf()
since left operand is always not null which is false. It can return
null
if json is
null
. How should I deal with it?