workaround for unexpected exception

This commit is contained in:
wimh 2011-10-02 03:49:35 +02:00
parent dbc0fddf10
commit 3da25900f3

View file

@ -348,7 +348,8 @@ namespace SparkleShare {
public static void SafeInvoke (this Control uiElement, Action updater, bool forceSynchronous) public static void SafeInvoke (this Control uiElement, Action updater, bool forceSynchronous)
{ {
if (uiElement == null) { if (uiElement == null) {
throw new ArgumentNullException ("uiElement"); //throw new ArgumentNullException ("uiElement");
return;
} }
if (uiElement.InvokeRequired) { if (uiElement.InvokeRequired) {