Revision fe762514
Added by Katja Luther over 3 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeHomotypicGroupOperation.java | ||
---|---|---|
86 | 86 |
newHomotypicalGroup.addTypifiedName(synonymName); |
87 | 87 |
|
88 | 88 |
Taxon acc = synonym.getAcceptedTaxon(); |
89 |
if(acc == null || !acc.equals(element)){ |
|
89 |
// if(acc == null || !acc.equals(element)){
|
|
90 | 90 |
if(acc != null){ |
91 | 91 |
acc.removeSynonym(synonym); |
92 | 92 |
} |
... | ... | |
97 | 97 |
} |
98 | 98 |
|
99 | 99 |
element.addSynonym(synonym, type); |
100 |
} |
|
100 |
// }
|
|
101 | 101 |
|
102 | 102 |
// Redraw editor if it exists |
103 | 103 |
return postExecute(synonym); |
Also available in: Unified diff
ref #9173: do not use use EditorUtil.getEditor() to avoid NPE