[editor only] fix a possible NPE during polygonize check
This commit is contained in:
@@ -137,7 +137,9 @@ public class PolygonTool extends SelectionTool implements PolygonTransformationL
|
||||
points.reverse();
|
||||
}
|
||||
polygonShapeComponent.polygonizedVertices = PolygonRuntimeUtils.polygonize(points.toArray());
|
||||
} else {
|
||||
}
|
||||
|
||||
if (intersections != null || polygonShapeComponent.polygonizedVertices == null) {
|
||||
// restore from backup
|
||||
polygonShapeComponent.vertices = UpdatePolygonVerticesCommand.cloneData(verticesBackup);
|
||||
polygonShapeComponent.polygonizedVertices = UpdatePolygonVerticesCommand.cloneData(polygonizedVerticesBackup);
|
||||
|
||||
Reference in New Issue
Block a user