Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/16/11 03:14:15 (13 years ago)
Author:
swagner
Message:

Fixed exception which was thrown when item updates are still pending after the content of an ItemCollectionView has already been changed (#1324)

File:
1 edited

Legend:

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

    r5287 r5302  
    216216        return listViewItems;
    217217      } else {
    218         return itemListViewItemMapping[item];
     218        List<ListViewItem> listViewItems = null;
     219        itemListViewItemMapping.TryGetValue(item, out listViewItems);
     220        return listViewItems == null ? Enumerable.Empty<ListViewItem>() : listViewItems;
    219221      }
    220222    }
Note: See TracChangeset for help on using the changeset viewer.