Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14863


Ignore:
Timestamp:
04/13/17 14:52:23 (7 years ago)
Author:
gkronber
Message:

#2700 fixed bug in cloning ctor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE/TSNEAlgorithm.cs

    r14862 r14863  
    198198
    199199    private TSNEAlgorithm(TSNEAlgorithm original, Cloner cloner) : base(original, cloner) {
     200      if(original.dataRowNames!=null)
    200201      this.dataRowNames = new Dictionary<string, List<int>>(original.dataRowNames);
    201       this.dataRows = original.dataRows.ToDictionary(kvp => kvp.Key, kvp => cloner.Clone(kvp.Value));
     202      if (original.dataRows != null)
     203        this.dataRows = original.dataRows.ToDictionary(kvp => kvp.Key, kvp => cloner.Clone(kvp.Value));
    202204      if (original.state != null)
    203205        this.state = cloner.Clone(original.state);
Note: See TracChangeset for help on using the changeset viewer.