diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2012-06-01 10:30:27 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2012-06-01 10:31:04 +0400 |
commit | 5a40763fcddf40738e3a993d6240e9512a0ee568 (patch) | |
tree | d6b8f1d13f76f9178b64d3cdbf3a876e1c145c9c /main/src | |
parent | 7c3bdf12a13a9305718145dccec6e6ee0d43a762 (diff) |
Fixed 'Bug 5442 - Error after "Instal template"'.
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeTemplates/CodeTemplate.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeTemplates/CodeTemplate.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeTemplates/CodeTemplate.cs index 1adba85aa7..6974583dcc 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeTemplates/CodeTemplate.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeTemplates/CodeTemplate.cs @@ -397,7 +397,7 @@ namespace MonoDevelop.Ide.CodeTemplates var context = new TemplateContext { Template = this, Document = document, - ParsedDocument = document.ParsedDocument.ParsedFile, + ParsedDocument = document.ParsedDocument != null ? document.ParsedDocument.ParsedFile : null, InsertPosition = data.Caret.Location, LineIndent = data.Document.GetLineIndent (data.Caret.Line), TemplateCode = Code |