damianpetla
11/14/2015, 5:10 PMval 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?