workaround for unexpected exception
This commit is contained in:
parent
dbc0fddf10
commit
3da25900f3
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue