Hum, I have a strange error where getting `compani...
# announcements
y
Hum, I have a strange error where getting
companionObjectInstance
on a KClass :
Copy code
Caused by: kotlin.TypeCastException: null cannot be cast to non-null type T
	at kotlin.reflect.jvm.internal.KClassImpl$objectInstance_$1.invoke(KClassImpl.kt:155)
	at kotlin.reflect.jvm.internal.ReflectProperties$LazyVal.invoke(ReflectProperties.java:63)
	at kotlin.reflect.jvm.internal.KClassImpl.getObjectInstance(KClassImpl.kt:159)
	at kotlin.reflect.KClasses.getCompanionObjectInstance(KClasses.kt:50)
Does this speak to anyone ?