Revision 3c4607b1
Added by Cherian Mathew about 11 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/NameEditorInput.java | ||
---|---|---|
143 | 143 |
*/ |
144 | 144 |
@Override |
145 | 145 |
public String getTypeText(Object entity) { |
146 |
if(entity instanceof TaxonNameBase){
|
|
146 |
if((entity instanceof TaxonNameBase) && (((TaxonNameBase) entity).getNomenclaturalCode() != null)){
|
|
147 | 147 |
return ((TaxonNameBase) entity).getNomenclaturalCode().getTitleCache(); |
148 | 148 |
} |
149 | 149 |
return super.getTypeText(entity); |
Also available in: Unified diff
checking for null nomenclatural code in getTypeText