import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
+import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
}
public static Collection<DiagramRegion> findRegions(ReadGraph graph, Resource model) throws DatabaseException {
+ if (model == null)
+ return Collections.emptyList();
+
List<Resource> diagrams = QueryIndexUtils.searchByType(graph, model, DiagramResource.getInstance(graph).Diagram);
Set<DiagramRegion> regions = new HashSet<>();
points[0] = moveX;
points[1] = moveY;
// Fall into....
-
+ break;
case PathIterator.SEG_LINETO:
thisX = points[0];
thisY = points[1];