Project

General

Profile

« Previous | Next » 

Revision 3c4607b1

Added by Cherian Mathew almost 11 years ago

checking for null nomenclatural code in getTypeText

View differences:

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