I have a Kotlin sealed class like following: ```se...
# announcements
e
I have a Kotlin sealed class like following:
Copy code
sealed class PointType(val value: Int, val title: String) {
    object point: PointType(1, "خطی")
    object  candlestick: PointType(2, "شمعی")

    companion object {
        val allCases: Array<PointType> = arrayOf(point, candlestick)
    }
}
and when I access
allCases
in java I get an array with size of 2, but the first element seems to be null!