Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/13/17 15:53:56 (7 years ago)
Author:
jkarder
Message:

#2258: worked on exception handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Async/HeuristicLab.DebugEngine/3.3/DebugEngine.cs

    r15065 r15232  
    181181      } catch (OperationCanceledException) {
    182182      } catch (AggregateException ae) {
    183         if (ae.InnerExceptions.Count == 1) OnExceptionOccurred(ae.InnerExceptions[0]);
    184         else OnExceptionOccurred(ae);
     183        OnExceptionOccurred(ae.InnerExceptions.SingleOrDefault() ?? ae);
    185184      } catch (Exception e) {
    186185        OnExceptionOccurred(e);
Note: See TracChangeset for help on using the changeset viewer.