что не так ? всё же верно вроде((
...
String s = e.getMessage();
System.out.println("NullPointerException" + s);
...