From 3da25900f3baa74005e69b94e311d914bb7b126b Mon Sep 17 00:00:00 2001 From: wimh Date: Sun, 2 Oct 2011 03:49:35 +0200 Subject: [PATCH] workaround for unexpected exception --- SparkleShare/Windows/SparkleStatusIcon.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SparkleShare/Windows/SparkleStatusIcon.cs b/SparkleShare/Windows/SparkleStatusIcon.cs index 02c1ea3e..ed964bfc 100644 --- a/SparkleShare/Windows/SparkleStatusIcon.cs +++ b/SparkleShare/Windows/SparkleStatusIcon.cs @@ -348,7 +348,8 @@ namespace SparkleShare { public static void SafeInvoke (this Control uiElement, Action updater, bool forceSynchronous) { if (uiElement == null) { - throw new ArgumentNullException ("uiElement"); + //throw new ArgumentNullException ("uiElement"); + return; } if (uiElement.InvokeRequired) {