Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/03/10 06:46:30 (15 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • implemented reviewers' comments
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/sources/HeuristicLab.Optimization/3.3/EngineAlgorithm.cs ΒΆ

    r2916 r2917  
    131131
    132132    private void InitializeEngine() {
    133       var types = ApplicationManager.Manager.GetTypes(typeof(IEngine));
    134       Type t = types.FirstOrDefault(x => x.Name.Equals("SequentialEngine"));
    135       if (t == null) t = types.FirstOrDefault();
    136       if (t != null) Engine = (IEngine)Activator.CreateInstance(t);
     133      if (ApplicationManager.Manager != null) {
     134        var types = ApplicationManager.Manager.GetTypes(typeof(IEngine));
     135        Type t = types.FirstOrDefault(x => x.Name.Equals("SequentialEngine"));
     136        if (t == null) t = types.FirstOrDefault();
     137        if (t != null) Engine = (IEngine)Activator.CreateInstance(t);
     138      }
    137139    }
    138140
Note: See TracChangeset for help on using the changeset viewer.