Project

General

Profile

« Previous | Next » 

Revision 1d8d7a2f

Added by Andreas Müller almost 3 years ago

remmove potential NPE in TermNode.toString

View differences:

cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/TreeNode.java
141 141
    @Override
142 142
    public String toString() {
143 143
        StringBuilder sb = new StringBuilder();
144
        sb.append("{").append(getData().toString()).append(",[");
144

  
145
        sb.append("{").append(getData() == null ? "null" : getData().toString()).append(",[");
145 146
        int i = 0;
146 147
        for (TreeNode<T,S> e : getChildren()) {
147 148
            if (i > 0) {

Also available in: Unified diff