Return empty List for Nodes with no children

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.