Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/21/10 07:17:21 (14 years ago)
Author:
swagner
Message:

Fixed null reference exception in collection views (#973)

File:
1 edited

Legend:

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

    r3455 r3456  
    163163    #region ListView Events
    164164    protected virtual void itemsListView_SelectedIndexChanged(object sender, EventArgs e) {
    165       removeButton.Enabled = itemsListView.SelectedItems.Count > 0 && !Content.IsReadOnly && !ReadOnly;
     165      removeButton.Enabled = itemsListView.SelectedItems.Count > 0 && (Content != null) && !Content.IsReadOnly && !ReadOnly;
    166166      if (itemsListView.SelectedItems.Count == 1) {
    167167        IRun item = (IRun)itemsListView.SelectedItems[0].Tag;
Note: See TracChangeset for help on using the changeset viewer.