@@ -0,0 +1,568 @@
+package npe;%0A%0Aimport edu.umd.cs.findbugs.annotations.CheckForNull;%0A%0Apublic class InsideCatchBlock %7B%0A%09public int doNotReportCatchNullPointerException(@CheckForNull Object x) %7B%0A%09%09try %7B%0A%09%09%09return x.hashCode();%0A%09%09%7D catch (NullPointerException e) %7B%0A%09%09%09return 42;%0A%09%09%7D%0A%09%7D%0A%09public int doNotReportCatchRuntimeException(@CheckForNull Object x) %7B%0A%09%09try %7B%0A%09%09%09return x.hashCode();%0A%09%09%7D catch (RuntimeException e) %7B%0A%09%09%09return 42;%0A%09%09%7D%0A%09%7D%0A%09public int doNotReportCatchException(@CheckForNull Object x) %7B%0A%09%09try %7B%0A%09%09%09return x.hashCode();%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09return 42;%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

test for NPE's inside small try blocks