Catching NullPointerException should not be used as an alternative to programmatic checks to prevent dereferencing a null pointer.