Java : Error handling: catching NullPointerException