Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/20/10 13:33:53 (14 years ago)
Author:
svonolfe
Message:

Fixed null reference exception #1236

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/VehicleRoutingProblem.cs

    r4625 r4626  
    352352    }
    353353    void DistanceMatrixParameter_ValueChanged(object sender, EventArgs e) {
    354       DistanceMatrix.ItemChanged += new EventHandler<EventArgs<int, int>>(DistanceMatrix_ItemChanged);
    355       DistanceMatrix.Reset += new EventHandler(DistanceMatrix_Reset);
     354      if (DistanceMatrix != null) {
     355        DistanceMatrix.ItemChanged += new EventHandler<EventArgs<int, int>>(DistanceMatrix_ItemChanged);
     356        DistanceMatrix.Reset += new EventHandler(DistanceMatrix_Reset);
     357      }
    356358      EvalBestKnownSolution();
    357359    }
Note: See TracChangeset for help on using the changeset viewer.