Fix NPE in DescriptionHelper #5835
authorAndreas Müller <a.mueller@bgbm.org>
Thu, 26 May 2016 23:49:07 +0000 (01:49 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Thu, 26 May 2016 23:49:07 +0000 (01:49 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/DescriptionHelper.java

index a241954d1d71eb5f15afc1331fe5237b25ffd908..b6d0d61bd9b9e039f67b647bf1f7331fc8e586c4 100644 (file)
@@ -288,7 +288,6 @@ public class DescriptionHelper {
                        }
                }
                if (StringUtils.isBlank(typeLabel)){
-                       typeLabel = status.getTitleCache();
                        typeLabel = "->";
                }
                String fromString = "";
@@ -355,7 +354,6 @@ public class DescriptionHelper {
                        }
                }
                if (StringUtils.isBlank(typeLabel)){
-                       typeLabel = type.getTitleCache();
                        typeLabel = "->";
                }
                String result = CdmUtils.concat(" ", new String[]{from == null ? null : from.getTitleCache(),