diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-10-07 10:16:24 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-10-07 10:16:24 +0400 |
commit | cd172200510fc03b5852263876a497bca940546d (patch) | |
tree | 7eb327a2e24fccc79166914d27c0afc0a3055c6a /main/src/addins/AspNet | |
parent | 90358c04307d2deea16995f2579ba3226ecc469d (diff) |
Fixed 'Bug 1299 - Unable to edit code in aspx files because of error
message from monodevelop'.
Diffstat (limited to 'main/src/addins/AspNet')
-rw-r--r-- | main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs b/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs index c2074a5c73..7b5772347d 100644 --- a/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs +++ b/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs @@ -216,7 +216,10 @@ namespace MonoDevelop.AspNet.Gui var docLoc = Document.Editor.Document.OffsetToLocation (start); loc.EndLine = loc.BeginLine = docLoc.Line; loc.EndColumn = loc.BeginColumn = docLoc.Column; - + if (documentBuilder == null){ + localDocumentInfo = null; + return; + } localDocumentInfo = documentBuilder.BuildLocalDocument (documentInfo, Editor, sourceText, textAfterCaret, true); var viewContent = new MonoDevelop.Ide.Gui.HiddenTextEditorViewContent (); |