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
diff options
context:
space:
mode:
authorGreg Munn <greg@sgmunn.com>2016-11-09 23:28:36 +0300
committerGitHub <noreply@github.com>2016-11-09 23:28:36 +0300
commit9860d99f37ad8e282126b3cef05914dbb32e9f84 (patch)
treec37801d9d9f0bbfc3da715e302fd87a5bc7eb18c
parent376c42fc5b2ab69e3dc7caa30b883041be3e28bb (diff)
parentef70e7b58b0eff9a751d50846ade6cff365f9ce5 (diff)
Merge pull request #1671 from mono/cycle9-fixexceptionmonodevelop-6.2.0.1369
[CSharpBinding] Fixed possible null reference exception.
-rw-r--r--main/src/addins/CSharpBinding/MonoDevelop.CSharp/PathedDocumentTextEditorExtension.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/addins/CSharpBinding/MonoDevelop.CSharp/PathedDocumentTextEditorExtension.cs b/main/src/addins/CSharpBinding/MonoDevelop.CSharp/PathedDocumentTextEditorExtension.cs
index d6d1e61b6d..cca8d9f5c5 100644
--- a/main/src/addins/CSharpBinding/MonoDevelop.CSharp/PathedDocumentTextEditorExtension.cs
+++ b/main/src/addins/CSharpBinding/MonoDevelop.CSharp/PathedDocumentTextEditorExtension.cs
@@ -279,6 +279,8 @@ namespace MonoDevelop.CSharp
void ResetOwnerProject ()
{
+ if (ownerProjects == null)
+ return;
if (ownerProjects.Count > 0)
DocumentContext.AttachToProject (FindBestDefaultProject ());
}