smaller changes for specimen import and others
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / name / NameDetailElement.java
index 84a1ae49eab28540008315bfe5e37a004f15136e..b4e733ed7065c0fef47b2907946944096cb19d0b 100644 (file)
@@ -179,7 +179,7 @@ public class NameDetailElement extends AbstractIdentifiableEntityDetailElement<N
        }
 
        private void createInfragenerericEpithetControls(ICdmFormElement element, NonViralName nonViralName, int style){
-               if (nonViralName.getNomenclaturalCode().equals(NomenclaturalCode.ICZN)){
+               if (nonViralName.getNomenclaturalCode() == null || nonViralName.getNomenclaturalCode().equals(NomenclaturalCode.ICZN)){
                        if(nonViralName.getRank() != null && nonViralName.getRank().isLower(Rank.GENUS()) ){
                                text_infragenericEpithet = formFactory.createTextWithLabelElement(element, "Infrageneric Epithet", nonViralName.getInfraGenericEpithet(), style);
                        }