Nullable type error

See documentation: get - Kotlin Programming Language

Also there is a previous post that addresses this: Map.withDefault not defaulting? - #2 by ilya.gorbunov