List<TaggedText> taggedTitle = TaxonNameBaseBeanProcessor.getTaggedName(node.getTaxon().getName());\r
json.element("taggedTitle", taggedTitle, jsonConfig);\r
json.element("taxonUuid", node.getTaxon().getUuid(), jsonConfig);\r
- json.element("secUuid", node.getTaxon().getSec().getUuid(), jsonConfig);\r
+ //Sec can be null (web services can return null for sec)\r
+ //comparation made for avoding view exceptions\r
+ if (node.getTaxon().getSec() == null){\r
+ json.element("secUuid", "null");\r
+ }else{\r
+ json.element("secUuid", node.getTaxon().getSec().getUuid(), jsonConfig);\r
+ } \r
json.element("taxonomicChildrenCount", node.getCountChildren(), jsonConfig);\r
+ json.element("unplaced", node.getTaxon().isUnplaced());\r
+ json.element("excluded", node.getTaxon().isExcluded());\r
String ranklabel = null;\r
if(node.getTaxon().getName().getRank() != null){\r
ranklabel = node.getTaxon().getName().getRank().getLabel();\r
}\r
json.element("rankLabel", ranklabel, jsonConfig);\r
- //json.element("treeUuid", node.getTaxonomicTree().getUuid(), jsonConfig);\r
+ //json.element("treeUuid", node.getClassification().getUuid(), jsonConfig);\r
\r
return json;\r
}\r