ref #8677: add distribution aggregation as long running task to editor - continue
authorKatja Luther <k.luther@bgbm.org>
Tue, 26 Nov 2019 11:31:27 +0000 (12:31 +0100)
committerKatja Luther <k.luther@bgbm.org>
Tue, 26 Nov 2019 11:31:27 +0000 (12:31 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/SuperAreaSelectionWizard.java

index be22914635a7af4110361582648b2293f794fa34..7e342a579507ca0760100b5860592bf940a38560 100755 (executable)
@@ -49,11 +49,11 @@ public class SuperAreaSelectionWizard extends Wizard {
                 ArrayList checkedList = new ArrayList(Arrays.asList(checkedElements));
                 ArrayList grayedList = new ArrayList(Arrays.asList(grayedElements));
                 checkedList = (ArrayList) CollectionUtils.subtract(checkedList, grayedList);
-                ArrayList<TermDto> listUIIDChecked = new ArrayList<TermDto>();
+                ArrayList<UUID> listUIIDChecked = new ArrayList<>();
                 ArrayList<UUID> listUIIDGrayed = new ArrayList<UUID>();
                 for (Object o : checkedList) {
                     if (o instanceof TermDto) {
-                        listUIIDChecked.add((TermDto) o);
+                        listUIIDChecked.add(((TermDto) o).getUuid());
 
                     }else if(o instanceof TermVocabularyDto){
                         TermVocabularyDto termVocDto = (TermVocabularyDto) o;