Project

General

Profile

« Previous | Next » 

Revision fa49c1f3

Added by Andreas Müller over 6 years ago

Fix NPE in classification label provider

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/TaxonNavigatorLabelProviderE4.java
62 62
            try{
63 63
                Taxon taxon = HibernateProxyHelper.deproxy(taxonNode.getTaxon());
64 64
                if(taxon == null){
65
                    String text = taxonNode.getClassification().getName().getText();
65
                    String text = taxonNode.getClassification().getName() == null ? null : taxonNode.getClassification().getName().getText();
66 66
                    if(text==null){
67 67
                        text = taxonNode.getClassification().getTitleCache();
68 68
                    }

Also available in: Unified diff