diff options
author | Matt Ward <ward.matt@gmail.com> | 2015-02-10 13:54:50 +0300 |
---|---|---|
committer | Matt Ward <ward.matt@gmail.com> | 2015-02-10 13:55:24 +0300 |
commit | 5a86635b2ed92ed35e2f6a1934d7714a229c1dc6 (patch) | |
tree | afa2e8613221a1dbc5b465f9c39eca6bc51011b7 /main | |
parent | bdf70cd8492aa9256014ceef12e93663e8ec1686 (diff) |
[Ide] Fix null reference exception when an showing error.
The exception can be null when ShowError is called via
one of its method overloads.
Diffstat (limited to 'main')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/MessageService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/MessageService.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/MessageService.cs index d7481182f2..83fdeb6f62 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/MessageService.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/MessageService.cs @@ -217,7 +217,7 @@ namespace MonoDevelop.Ide LoggingService.LogError (msg, ex); } - if (string.IsNullOrEmpty (secondaryText)) + if (string.IsNullOrEmpty (secondaryText) && (ex != null)) secondaryText = ex.Message; return GenericAlert (parent, MonoDevelop.Ide.Gui.Stock.Error, primaryText, secondaryText, buttons); |