9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-29 20:19:06 +00:00

fix null pointer

This commit is contained in:
CrazyDev22
2024-04-23 13:49:10 +02:00
parent 100e450514
commit c1d5ba55cd

View File

@@ -279,6 +279,8 @@ public class IrisObject extends IrisRegistrant {
public synchronized IrisObject copy() {
IrisObject o = new IrisObject(w, h, d);
o.setLoadKey(o.getLoadKey());
o.setLoader(getLoader());
o.setLoadFile(getLoadFile());
o.setCenter(getCenter().clone());
for (BlockVector i : getBlocks().keySet()) {
@@ -898,6 +900,7 @@ public class IrisObject extends IrisRegistrant {
}
}
} catch (Throwable e) {
e.printStackTrace();
Iris.reportError(e);
}
readLock.unlock();