Revision bd5b538f
Added by Katja Luther over 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameTypeDesignationElement.java | ||
---|---|---|
12 | 12 |
import org.eclipse.swt.events.SelectionListener; |
13 | 13 |
|
14 | 14 |
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper; |
15 |
import eu.etaxonomy.cdm.model.description.DescriptionElementSource; |
|
15 | 16 |
import eu.etaxonomy.cdm.model.name.NameTypeDesignation; |
16 | 17 |
import eu.etaxonomy.cdm.model.name.NameTypeDesignationStatus; |
17 | 18 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
... | ... | |
102 | 103 |
} |
103 | 104 |
} |
104 | 105 |
getEntity().setTypeStatus(combo_typeStatus.getSelection()); |
106 |
if (getEntity().hasDesignationSource()){ |
|
107 |
DescriptionElementSource source = DescriptionElementSource.NewPrimarySourceInstance(null, null); |
|
108 |
entity.setSource(source); |
|
109 |
} |
|
105 | 110 |
|
106 | 111 |
setEntity(entity); |
107 | 112 |
} else if (eventSource == checkbox_notDesignated) { |
Also available in: Unified diff
ref #9199: fix NPE for newly created designation source