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
diff options
context:
space:
mode:
authorMatt Ward <ward.matt@gmail.com>2015-02-10 13:54:50 +0300
committerMatt Ward <ward.matt@gmail.com>2015-02-10 13:55:24 +0300
commit5a86635b2ed92ed35e2f6a1934d7714a229c1dc6 (patch)
treeafa2e8613221a1dbc5b465f9c39eca6bc51011b7 /main
parentbdf70cd8492aa9256014ceef12e93663e8ec1686 (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.cs2
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);