referencing objects view for media, NPE in polytomous key view
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / key / polytomous / PolytomousKeyListContentProvider.java
index 90ed20b2b7386d3397d1ce2d2de13f45851709ee..2f2575378987ece8a1108cbe79a134f90e4efe27 100644 (file)
@@ -69,6 +69,9 @@ public class PolytomousKeyListContentProvider implements
 
        private void getChildrenBreadthFirst(List<PolytomousKeyNode> result,
                        PolytomousKeyNode node) {
+           if (node == null){
+               return;
+           }
                if (!node.getChildren().isEmpty()) {
                        result.addAll(node.getChildren());
                        for (PolytomousKeyNode internalNode : node.getChildren()) {