fixed bugs, memory leaks, etc

This commit is contained in:
bbldrizzy committed 2026-10-23 08:36:42 +01:00
1 parent aa4f6b6ddc
commit c3f8f23c1d
124 files changed
+1060 -420

No files matched your search

@@ -55,6 +55,10 @@ public class FieldAccessor extends ReflectionBase {
}
public Object get(Object target) {
if (!this.isStaticField && target == null) {
throw new NullPointerException("target cannot be null for instance field " + this.field);
}
try {
if (UNSAFE != null) {
return this.unsafeGet(target);
@@ -69,6 +73,10 @@ public class FieldAccessor extends ReflectionBase {
}
public void set(Object target, Object value) {
if (!this.isStaticField && target == null) {
throw new NullPointerException("target cannot be null for instance field " + this.field);
}
if (this.isStaticField) {
if (UNSAFE != null) {
this.unsafeSet(null, value);