mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +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 {
|
||||
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()) {
|
||||
copy.setSourceMask(mask);
|
||||
if (this.getSourceMask().equals(mask)) {
|
||||
if (sourceMask != null && sourceMask.equals(mask)) {
|
||||
setSourceMask(null);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user