I got this error just after converted the adapter code to Kotlin:
java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.
Make convertView nullable:
convertView
convertView: View?
I'm not sure why the line number is wrong, but the stacktrace tells you where to look in the error message.