Project

General

Profile

« Previous | Next » 

Revision f3af8944

Added by Patrick Plitzner over 6 years ago

ref #6949 Catch potential racing condition exception (e3 related)

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/ImageElement.java
55 55
        @Override
56 56
        public void run() {
57 57
            //FIXME E4 migrate
58
            try{
58 59
            EPartService partService = TaxeditorStorePlugin.getDefault().getWorkbench().getService(EPartService.class);
59 60
            MPart detailsPart = partService.findPart("eu.etaxonomy.taxeditor.view.e4.details.DetailsPartE4");
60 61
            if(detailsPart!=null){
......
64 65
            if(supplementalPart!=null){
65 66
                ((AbstractCdmDataViewerE4) ((SupplementalDataPartE4)supplementalPart.getObject()).getViewer()).reflow();
66 67
            }
68
            }
69
            catch(IllegalStateException e){
70
                //when migrating to E4 this execption should not be thrown anymore
71
            }
67 72
        }
68 73
    };
69 74

  

Also available in: Unified diff