Fix potential stack overflow
This commit is contained in:
parent
4049014cb8
commit
3dbe0e9c30
@ -217,7 +217,8 @@ public class AbstractDelegateExtent implements LightingExtent {
|
|||||||
@Nullable
|
@Nullable
|
||||||
Operation commit() {
|
Operation commit() {
|
||||||
Operation ours = commitBefore();
|
Operation ours = commitBefore();
|
||||||
Operation other = extent.commit();
|
Operation other = null;
|
||||||
|
if (extent != this) other = extent.commit();
|
||||||
if (ours != null && other != null) {
|
if (ours != null && other != null) {
|
||||||
return new OperationQueue(ours, other);
|
return new OperationQueue(ours, other);
|
||||||
} else if (ours != null) {
|
} else if (ours != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user