class ThrowNullConverter {
  public ThrowNullConverter(Singletons.Global g) {
  }

  public static ThrowNullConverter v() {
    return G.v().soot_dava_toolkits_base_misc_ThrowNullConverter();
  }

  private final RefType npeRef = RefType.v(Scene.v().loadClassAndSupport("java.lang.NullPointerException"));

  public void convert(DavaBody body) {<FILL_FUNCTION_BODY>}
}

    Iterator it = body.getUnits().iterator();
    while (it.hasNext()) {
      Unit u = (Unit) it.next();

      if (u instanceof ThrowStmt) {
        ValueBox opBox = ((ThrowStmt) u).getOpBox();
        Value op = opBox.getValue();

        if (op.getType() instanceof NullType) {
          opBox.setValue(new DNewInvokeExpr(npeRef, null, new ArrayList()));
        }
      }
    }
  
<no_super_class>