Return empty List for Nodes with no children (1 post)

Topic tags: children, jme2, Node, null
  • Profile picture of sbook sbook255p said 1 year, 8 months ago:

    Empty nodes return null rather than an empty List when the getChildren() method is called. Can anyone think of a reason why we should continue this procedure?

    Some people have likely never had this problem if they don’t use for-each statements but it is certainly something to keep an eye on as of now.