diff options
author | David Karlaš <david.karlas@xamarin.com> | 2014-07-14 20:51:14 +0400 |
---|---|---|
committer | David Karlaš <david.karlas@xamarin.com> | 2014-07-15 00:07:40 +0400 |
commit | f51502c8321aeb2e67a445ebddba4354c221c7c8 (patch) | |
tree | c577cecd731bdbb18f75b26bc978fd24ee518011 | |
parent | 3a24c9c395f6b8a6f72f17069aeca42f4c36f9c3 (diff) |
[Debugger] Fixing NRE Bug 21294
-rw-r--r-- | main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/BreakpointPropertiesDialog.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/BreakpointPropertiesDialog.cs b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/BreakpointPropertiesDialog.cs index 8d275315a5..683bc1d2e2 100644 --- a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/BreakpointPropertiesDialog.cs +++ b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/BreakpointPropertiesDialog.cs @@ -356,7 +356,9 @@ namespace MonoDevelop.Debugger conditionalHitType.SelectedItem = ConditionalHitWhen.ConditionIsTrue;
checkIncludeSubclass.Active = true;
- if (IdeApp.Workbench.ActiveDocument != null) {
+ if (IdeApp.Workbench.ActiveDocument != null &&
+ IdeApp.Workbench.ActiveDocument.Editor != null &&
+ IdeApp.Workbench.ActiveDocument.FileName != FilePath.Null) {
breakpointLocation.Update (IdeApp.Workbench.ActiveDocument.FileName,
IdeApp.Workbench.ActiveDocument.Editor.Caret.Line,
IdeApp.Workbench.ActiveDocument.Editor.Caret.Column);
|