The NullPointerException
means you tried to deference a null
value so you get the expected behaviour.
It doesn’t have anything to do with detecting uninitialised values. It’s not called UninitialisedException
The NullPointerException
means you tried to deference a null
value so you get the expected behaviour.
It doesn’t have anything to do with detecting uninitialised values. It’s not called UninitialisedException