Project

General

Profile

« Previous | Next » 

Revision ccae8112

Added by Katja Luther almost 3 years ago

ref #9690: show message when selection of bulk editor is not available

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/TaxonEditorInput.java
29 29
import eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorSortProvider;
30 30
import eu.etaxonomy.taxeditor.bulkeditor.input.entitycreator.TaxonCreator;
31 31
import eu.etaxonomy.taxeditor.bulkeditor.input.sortprovider.IdentifiableEntitySortProvider;
32
import eu.etaxonomy.taxeditor.model.MessagingUtils;
32 33
import eu.etaxonomy.taxeditor.store.CdmStore;
33 34

  
34 35
public class TaxonEditorInput extends AbstractBulkEditorInput<TaxonBase>{
......
165 166

  
166 167
    @Override
167 168
    public void addSaveCandidate(TaxonBase taxonBase){
169
        if (taxonBase == null){
170
            MessagingUtils.info("The focus on the selected taxon was lost somehow, please try again.");
171
            return;
172
        }
168 173
        if (!taxonBase.getName().getHybridChildRelations().isEmpty()){
169 174
            for (HybridRelationship rel: taxonBase.getName().getHybridChildRelations()){
170 175
                if (!rel.getParentName().isPersited()){

Also available in: Unified diff