- Timestamp:
- 01/16/11 03:14:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs
r5287 r5302 23 23 using System.Collections.Generic; 24 24 using System.Drawing; 25 using System.Linq; 25 26 using System.Windows.Forms; 26 27 using HeuristicLab.Collections; … … 139 140 try { 140 141 return (T)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(); 141 } catch (Exception ex) { 142 } 143 catch (Exception ex) { 142 144 ErrorHandling.ShowErrorDialog(this, ex); 143 145 } … … 213 215 return listViewItems; 214 216 } else { 215 return itemListViewItemMapping[item]; 217 List<ListViewItem> listViewItems = null; 218 itemListViewItemMapping.TryGetValue(item, out listViewItems); 219 return listViewItems == null ? Enumerable.Empty<ListViewItem>() : listViewItems; 216 220 } 217 221 }
Note: See TracChangeset
for help on using the changeset viewer.