I'm trying to remove a hole from a polygon vertex-by-vertex using the Remove Vertex tool. After I remove all the vertices of the hole I get the following stack trace:
java.lang.IllegalArgumentException: holes must not contain null elements
at com.vividsolutions.jts.geom.Polygon.<init>(Polygon.java:127)
at com.vividsolutions.jts.geom.GeometryFactory.createPolygon(GeometryFactory.java:383)
at net.refractions.udig.tools.edit.support.GeometryCreationUtil.createPolygon(GeometryCreationUtil.java:227)
at net.refractions.udig.tools.edit.support.GeometryCreationUtil.createGeom(GeometryCreationUtil.java:170)
at net.refractions.udig.tools.edit.support.GeometryCreationUtil.createAllGeoms(GeometryCreationUtil.java:99)
at net.refractions.udig.tools.edit.behaviour.WriteChangesBehaviour.getCommand(WriteChangesBehaviour.java:152)
at net.refractions.udig.tools.edit.MutualExclusiveBehavior.getCommand(MutualExclusiveBehavior.java:66)
at net.refractions.udig.tools.edit.BehaviourCommand.execute(BehaviourCommand.java:58)
at net.refractions.udig.project.command.CommandManager$Executor.execute(CommandManager.java:394)
at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:325)
at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:311)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)