<Top level non-null variables are null> Hello. I’m...
# forum
r
Top level non-null variables are null Hello. I’m facing a really strange issue in kotlin. given that top level variables in kotlin, declared outside any classes or other scopes are initialized with any order, but it is guaranteed that when you access a variable it is initialized, i have something like this: val classVariableExp = variableName["variableName"] + spaces + ":" + spaces + variableName["variableType"] which results in this error Exception in thread "main" java.lang.ExceptionInInitializerError at...