Commit ac05d34d authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx_dialog_provider: It's ok to have a nil object as *parameter*.

parent a3a7708c
......@@ -452,7 +452,6 @@ bool checkProgressPanel (void *priv)
id object = [dict objectForKey:@"object"];
NSAssert(sel, @"Try to execute a NULL selector");
NSAssert(object, @"Try to execute from a nil object");
*result = [self performSelector:sel withObject:object];
[*result retain]; // Balanced in -resultFromSelectorOnMainThread
......@@ -462,7 +461,6 @@ bool checkProgressPanel (void *priv)
{
id result = nil;
NSAssert(sel, @"Try to execute a NULL selector");
NSAssert(sel, @"Try to execute from a nil object");
NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
[NSValue valueWithPointer:sel], @"sel",
[NSValue valueWithPointer:&result], @"result",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment