diff options
author | Greg Munn <greg@sgmunn.com> | 2016-11-09 23:28:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-09 23:28:36 +0300 |
commit | 9860d99f37ad8e282126b3cef05914dbb32e9f84 (patch) | |
tree | c37801d9d9f0bbfc3da715e302fd87a5bc7eb18c | |
parent | 376c42fc5b2ab69e3dc7caa30b883041be3e28bb (diff) | |
parent | ef70e7b58b0eff9a751d50846ade6cff365f9ce5 (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.cs | 2 |
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 ()); } |