Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/30/10 04:53:40 (14 years ago)
Author:
swagner
Message:

Fixed exceptions (#893)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/NamedItemCollectionView.cs

    r3393 r3561  
    7979    }
    8080    protected override IEnumerable<ListViewItem> GetListViewItemsForItem(T item) {
    81       return new ListViewItem[] { listViewItemDictionary[item] };
     81      ListViewItem listViewItem = null;
     82      listViewItemDictionary.TryGetValue(item, out listViewItem);
     83      if (listViewItem != null) return new ListViewItem[] { listViewItem };
     84      else return new ListViewItem[0];
    8285    }
    8386
Note: See TracChangeset for help on using the changeset viewer.