One Way to Sidestep Potential Null Pointer Warning in Java
It’s silly to hate null pointer exceptions. If you pay attention to compiler warnings, it’s unlikely that a null pointer exception will catch you by surprise in a production context.
Test-driven development is also a big help in that department. A null pointer exception in a development context is then just a part of the process, not something to fear, much less…