Object thisIsNull = null; if (thisIsNull == null) { try { System.out.println("hello"); thisIsNull = "notnull"; } catch (Exception ex) {  System.out.println(thisIsNull.getClass()); } } }
Object thisIsNull = null; if (thisIsNull == null) { try { System.out.println("hello"); thisIsNull = "notnull"; } catch (RuntimeException ex) {  System.out.println(thisIsNull.getClass()); } } }
  public void detectedNullPointerInExceptionPath() {    Object thisIsNull = null;    if (thisIsNull == null) {      try {	System.out.println("hello");	thisIsNull = "notnull";      } catch (Exception ex) {        // Should generate a low warning here	System.out.println(thisIsNull.getClass());      }    }  }