]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/ParentNode.java
Introduced G2DRenderingHints.KEY_TRANSFORM_UNDER_SPATIAL_ROOT
[simantics/platform.git] / bundles / org.simantics.scenegraph / src / org / simantics / scenegraph / ParentNode.java
index 866e8d36cba6718fe20b5eebb926fe9698228e2a..f599fd05efda23dd517aa677be780ee309067963 100644 (file)
@@ -244,7 +244,7 @@ public abstract class ParentNode<T extends INode> extends Node {
      * @return the collection of this node's children in an unspecified order
      */
     public Collection<T> getNodes() {
-        return children.values();
+        return children.isEmpty() ? Collections.emptyList() : (Collection<T>) children.values();
     }
 
     public int getNodeCount() {