Browse Source

SD2-972 - Null reference exception thrown by the Component Inspector's find dialog when trying to show the 'No items found' list item. The find dialog was not handling the list item's tag being null.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2216 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 19 years ago
parent
commit
12daded61e
  1. 7
      src/AddIns/Misc/ComponentInspector/ComponentInspector.Core/Src/ObjectBrowser/Dialogs/FindDialog.cs

7
src/AddIns/Misc/ComponentInspector/ComponentInspector.Core/Src/ObjectBrowser/Dialogs/FindDialog.cs

@ -598,9 +598,12 @@ namespace NoGoop.ObjBrowser.Dialogs
// Materialize can sometimes take a while // Materialize can sometimes take a while
Cursor save = Cursor.Current; Cursor save = Cursor.Current;
Cursor.Current = Cursors.WaitCursor; Cursor.Current = Cursors.WaitCursor;
((ISearchMaterializer)_foundList.SelectedItems[0].Tag).PointToNode(); ISearchMaterializer searchMaterializer = _foundList.SelectedItems[0].Tag as ISearchMaterializer;
if (searchMaterializer != null) {
searchMaterializer.PointToNode();
Close();
}
Cursor.Current = save; Cursor.Current = save;
Close();
} }
protected void LayoutHandler(object sender, LayoutEventArgs e) protected void LayoutHandler(object sender, LayoutEventArgs e)

Loading…
Cancel
Save