Is this NPE specification of kotlin? or bug? ``` ...
# announcements
o
Is this NPE specification of kotlin? or bug?
Copy code
class A() {
    init {
        val s: String = getStr()
        println("${s.length}") // java.lang.NullPointerException
    }

    fun getStr(): String {
        return str
    }
    
    private val str: String = "aaa"
}

fun main(args: Array<String>) {
    A()
}