Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/17/18 11:38:57 (7 years ago)
Author:
fholzing
Message:

#2880: Added additional null/empty-check (otherwise an error would occur if all runs are removed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.cs

    r15622 r15623  
    417417          position++;
    418418        }
    419       } else if (dimension > 0 && Content.GetValue(0, dimension) is TimeSpanValue) {
     419      } else if (dimension > 0 && Content != null && Content.Count > 0 && Content.GetValue(0, dimension) is TimeSpanValue) {
    420420        this.chart.ChartAreas[0].RecalculateAxesScale();
    421421        Axis correspondingAxis = this.chart.ChartAreas[0].Axes.Where(x => x.Name == axis.Name).SingleOrDefault();
Note: See TracChangeset for help on using the changeset viewer.