There should be a catch Exception to deal with all other exceptions such as NPE.