Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2012-06-01 10:30:27 +0400
committerMike Krüger <mkrueger@xamarin.com>2012-06-01 10:31:04 +0400
commit5a40763fcddf40738e3a993d6240e9512a0ee568 (patch)
treed6b8f1d13f76f9178b64d3cdbf3a876e1c145c9c /main/src
parent7c3bdf12a13a9305718145dccec6e6ee0d43a762 (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.cs2
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