Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/19/14 15:29:58 (11 years ago)
Author:
bburlacu
Message:

#2143: Fixed deep cloning error and assembly plugin reference.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisSingleObjectivePruningAnalyzer.cs

    r10469 r10470  
    9090    protected SymbolicDataAnalysisSingleObjectivePruningAnalyzer(SymbolicDataAnalysisSingleObjectivePruningAnalyzer original, Cloner cloner)
    9191      : base(original, cloner) {
    92       this.prunedSubtreesReducer = (DataReducer)original.prunedSubtreesReducer.Clone();
    93       this.prunedTreesReducer = (DataReducer)original.prunedTreesReducer.Clone();
    94       this.valuesCollector = (DataTableValuesCollector)original.valuesCollector.Clone();
    95       this.resultsCollector = (ResultsCollector)original.resultsCollector.Clone();
     92      if (original.prunedSubtreesReducer != null)
     93        this.prunedSubtreesReducer = (DataReducer)original.prunedSubtreesReducer.Clone();
     94      if (original.prunedTreesReducer != null)
     95        this.prunedTreesReducer = (DataReducer)original.prunedTreesReducer.Clone();
     96      if (original.valuesCollector != null)
     97        this.valuesCollector = (DataTableValuesCollector)original.valuesCollector.Clone();
     98      if (original.resultsCollector != null)
     99        this.resultsCollector = (ResultsCollector)original.resultsCollector.Clone();
    96100    }
    97101    protected SymbolicDataAnalysisSingleObjectivePruningAnalyzer() {
Note: See TracChangeset for help on using the changeset viewer.