Project

General

Profile

« Previous | Next » 

Revision 676a8bf4

Added by Patrick Plitzner over 6 years ago

Add null check to handler (#5283)

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/handler/MoveDescriptionElementsHandler.java
88 88
			}
89 89
			DescriptionBase description = elements.get(0).getInDescription();
90 90
			List<UUID> excludeTaxa = new ArrayList<UUID>();
91
			if (description.isInstanceOf(TaxonDescription.class)){
91
			if (description!=null && description.isInstanceOf(TaxonDescription.class)){
92 92
				TaxonDescription taxonDescription = HibernateProxyHelper.deproxy(description, TaxonDescription.class);
93 93
				actualTaxon = taxonDescription.getTaxon();
94 94
				excludeTaxa.add(actualTaxon.getUuid());

Also available in: Unified diff