Project

General

Profile

Revision 1323a4df

ID1323a4dfe7e8fe700b94ce11bfc98470f7878d49
Parent b48c173c
Child deafa597

Added by Patrick Plitzner over 3 years ago

ref #5458 fix assignment of new distribution if it was null before

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/presenter/dbstatus/DistributionTablePresenter.java
91 91
	    	//create new distribution
92 92
	    	distribution = Distribution.NewInstance(namedArea, (PresenceAbsenceTerm) comboValue);
93 93
			Set<TaxonDescription> descriptions = taxon.getDescriptions();
94
			if (descriptions != null) {
94
			if (descriptions != null && !descriptions.isEmpty()) {
95 95
			    for (TaxonDescription desc : descriptions) {
96 96
			        // add to first taxon description
97 97
			        desc.addElement(distribution);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)