Free cookie consent management tool by TermsFeed Policy Generator

Changeset 701


Ignore:
Timestamp:
10/28/08 10:12:33 (16 years ago)
Author:
abeham
Message:

[TICKET #329] Added not-null check before cloning value in Variable.Clone()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/Variable.cs

    r533 r701  
    7373      clonedObjects.Add(Guid, clone);
    7474      clone.myName = Name;
    75       clone.myValue = (IItem)Auxiliary.Clone(Value, clonedObjects);
     75      if (Value != null)
     76        clone.myValue = (IItem)Auxiliary.Clone(Value, clonedObjects);
    7677      return clone;
    7778    }
Note: See TracChangeset for help on using the changeset viewer.