Project

General

Profile

« Previous | Next » 

Revision 7eb38e5c

Added by Andreas Kohlbecker about 1 year ago

fix #9931 catching unusaully fast thrown MailConnectExceptions in LoginPresenter

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/LoginPresenter.java
205 205
        } catch (InterruptedException e) {
206 206
            asyncTimeout = true;
207 207
        } catch (Exception e) {
208
            // in case executing getUserNameOrEmail() causes an exeption faster
209
            // than futureResult.addCallback( can be processed, the execption
208
            // in case executing getUserNameOrEmail() causes an exception faster
209
            // than futureResult.addCallback( can be processed, the exception
210 210
            // can not be caught asynchronously
211 211
            // so we are adding all these exceptions here
212 212
            asyncException.add(e);
......
268 268
            result = futureResult.get();
269 269
        } catch (InterruptedException e) {
270 270
            asyncTimeout = true;
271
        } catch (Exception e) {
272
            // in case executing emailAccountRegistrationRequest() causes an exception faster
273
            // than futureResult.addCallback( can be processed, the exception
274
            // can not be caught asynchronously
275
            // so we are adding all these exceptions here
276
            asyncException.add(e);
271 277
        }
272 278
        if(!asyncException.isEmpty()) {
273 279
            getView().getLoginDialog().getRegisterMessageLabel()

Also available in: Unified diff