mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-18 06:41:08 +00:00
fix null pointer
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user