kotlin-stdlib / kotlin.text / getOrNull getOrNull Common JVM JS Native 1.0 fun CharSequence.getOrNull(index: Int): Char? Returns a character at the given index or null if the index is out of bounds of this char sequence.