It takes the value 'null' and immediately attempts...
# getting-started
f
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