fix NPE in taxonnode comparator
[taxeditor.git] / eu.etaxonomy.taxeditor.navigation / src / main / java / eu / etaxonomy / taxeditor / navigation / navigator / TaxonNodeNavigatorComparator.java
index b28933388e65cd0aad95fae7d21a10816f168690..83b595e61bbe5ef2f1b613bcd220094f919afe3c 100644 (file)
@@ -27,7 +27,7 @@ public class TaxonNodeNavigatorComparator extends ViewerComparator{
                } else{
                        if (((TaxonNode)e1).getTaxon() == null && ((TaxonNode)e2).getTaxon() == null){
                                String title1 = ((TaxonNode)e1).getClassification().getTitleCache();
-                               title1 = title == null ? "" : title1;
+                               title1 = title1 == null ? "" : title1;
                                return title1.compareTo(((TaxonNode)e2).getClassification().getTitleCache());
                        }else{
                                return comparator.compare((TaxonNode)e1, (TaxonNode)e2);