module.defineClassUnder("NullPointerError", runtime.getRuntimeError(),
runtime.getRuntimeError().getAllocator());
// Add Pointer::NULL as a constant
result.fastSetConstant("NULL", new Pointer(runtime, result, new NullMemoryIO(runtime)));
return result;
}
private static final class PointerAllocator implements ObjectAllocator {