I got this error just after converted the adapter code to Kotlin:
java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.
Change your convertView in getView from non-null to nullable
override fun getView(position: Int, convertView: View, parent: ViewGroup): View {
to
override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {