https://kotlinlang.org logo
#getting-started
Title
# getting-started
f

fellshard

06/17/2016, 10:31 AM
It takes the value 'null' and immediately attempts to access the value by asserting
null
is not null. This, as expected, fails with a
NullReferenceException
. Because this happens while first initializing a field, the previous exception is caught and wrapped in an
ExceptionInInitializerError
.
👍 1