bugfix for NameTypeDesignation.isLectoType()
authorAndreas Müller <a.mueller@bgbm.org>
Tue, 13 Oct 2009 19:22:32 +0000 (19:22 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Tue, 13 Oct 2009 19:22:32 +0000 (19:22 +0000)
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/NameTypeDesignation.java

index f1f76d1e81dc33c575d7e80f289d554ae8ea6354..0690bfaeeabdb86dfc197e053c7da7b120647db5 100644 (file)
@@ -204,7 +204,12 @@ implements ITypeDesignation {
 
        @Transient
        public boolean isLectoType() {
-               return getTypeStatus().isLectotype();
+               NameTypeDesignationStatus status = getTypeStatus();
+               if (status == null){
+                       return false;
+               }else{
+                       return status.isLectotype();
+               }
        }
        
        /**