Java to Kotlin converter: fixed exception on conversion