Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3503


Ignore:
Timestamp:
04/23/10 01:09:39 (15 years ago)
Author:
swagner
Message:

Implemented reviewers' comments (#893)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators/3.3/VariableCreator.cs

    r3376 r3503  
    4848      foreach (IParameter param in CollectedValues) {
    4949        CurrentScope.Variables.TryGetValue(param.Name, out var);
     50        IItem value = param.ActualValue;
    5051        if (var != null)
    51           var.Value = (IItem)param.ActualValue.Clone();
     52          var.Value = value == null ? null : (IItem)value.Clone();
    5253        else
    53           CurrentScope.Variables.Add(new Variable(param.Name, param.Description, (IItem)param.ActualValue.Clone()));
     54          CurrentScope.Variables.Add(new Variable(param.Name, param.Description, value == null ? null : (IItem)value.Clone()));
    5455      }
    5556      return base.Apply();
Note: See TracChangeset for help on using the changeset viewer.