Browse Source

Fix NullReferenceException in WatchList.

pull/18/head
Daniel Grunwald 14 years ago
parent
commit
3352833035
  1. 8
      src/AddIns/Debugger/Debugger.AddIn/Pads/Controls/WatchList.xaml.cs

8
src/AddIns/Debugger/Debugger.AddIn/Pads/Controls/WatchList.xaml.cs

@ -60,8 +60,10 @@ namespace Debugger.AddIn.Pads.Controls
} }
if (e.Key == Key.Enter || e.Key == Key.Escape) { if (e.Key == Key.Enter || e.Key == Key.Escape) {
myList.UnselectAll(); myList.UnselectAll();
LocalVarPad.Instance.InvalidatePad(); if (LocalVarPad.Instance != null)
WatchPad.Instance.InvalidatePad(); LocalVarPad.Instance.InvalidatePad();
if (WatchPad.Instance != null)
WatchPad.Instance.InvalidatePad();
} }
} }
@ -74,7 +76,7 @@ namespace Debugger.AddIn.Pads.Controls
SelectedNode.Node.Name = cell.CommandText; SelectedNode.Node.Name = cell.CommandText;
myList.UnselectAll(); myList.UnselectAll();
if (WatchType == WatchListType.Watch) { if (WatchType == WatchListType.Watch && WatchPad.Instance != null) {
WatchPad.Instance.InvalidatePad(); WatchPad.Instance.InvalidatePad();
} }
SelectedNode.IsEditing = false; SelectedNode.IsEditing = false;

Loading…
Cancel
Save