mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
fix NPE with null sourcemask on move
This commit is contained in:
parent
846443291f
commit
831c6f6854
@ -1627,10 +1627,11 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
|
|||||||
} else {
|
} else {
|
||||||
allowedRegion = new RegionIntersection(allowedRegions);
|
allowedRegion = new RegionIntersection(allowedRegions);
|
||||||
}
|
}
|
||||||
mask = MaskIntersection.of(getSourceMask(), mask, new RegionMask(allowedRegion)).optimize();
|
Mask sourceMask = this.getSourceMask();
|
||||||
|
mask = MaskIntersection.of(sourceMask, mask, new RegionMask(allowedRegion)).optimize();
|
||||||
if (mask != Masks.alwaysTrue()) {
|
if (mask != Masks.alwaysTrue()) {
|
||||||
copy.setSourceMask(mask);
|
copy.setSourceMask(mask);
|
||||||
if (this.getSourceMask().equals(mask)) {
|
if (sourceMask != null && sourceMask.equals(mask)) {
|
||||||
setSourceMask(null);
|
setSourceMask(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user