Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6902


Ignore:
Timestamp:
10/12/11 08:06:17 (13 years ago)
Author:
abeham
Message:

#1622

  • fixed cloning when object has not been initialized properly
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/Calculator.cs

    r6687 r6902  
    11using System;
    22using System.Collections.Generic;
     3using System.Globalization;
    34using System.Linq;
    45using System.Text.RegularExpressions;
     
    78using HeuristicLab.Data;
    89using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    9 using System.Globalization;
    1010
    1111namespace HeuristicLab.Optimization {
     
    3636    protected Calculator(Calculator original, Cloner cloner) {
    3737      cloner.RegisterClonedObject(original, this);
    38       tokens = original.tokens.ToList();
     38      if (original.tokens != null)
     39        tokens = original.tokens.ToList();
    3940    }
    4041    public IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset for help on using the changeset viewer.