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