NullPointerException is better for a null test