fix null pointer

This commit is contained in:
CrazyDev22
2024-04-23 13:49:10 +02:00
parent 100e450514
commit c1d5ba55cd
@@ -279,6 +279,8 @@ public class IrisObject extends IrisRegistrant {
public synchronized IrisObject copy() { public synchronized IrisObject copy() {
IrisObject o = new IrisObject(w, h, d); IrisObject o = new IrisObject(w, h, d);
o.setLoadKey(o.getLoadKey()); o.setLoadKey(o.getLoadKey());
o.setLoader(getLoader());
o.setLoadFile(getLoadFile());
o.setCenter(getCenter().clone()); o.setCenter(getCenter().clone());
for (BlockVector i : getBlocks().keySet()) { for (BlockVector i : getBlocks().keySet()) {
@@ -898,6 +900,7 @@ public class IrisObject extends IrisRegistrant {
} }
} }
} catch (Throwable e) { } catch (Throwable e) {
e.printStackTrace();
Iris.reportError(e); Iris.reportError(e);
} }
readLock.unlock(); readLock.unlock();