diff --git a/Source/NSConnection.m b/Source/NSConnection.m index 7088a785a..f464e82ba 100644 --- a/Source/NSConnection.m +++ b/Source/NSConnection.m @@ -419,8 +419,11 @@ static NSLock *global_proxies_gate; c = [self alloc]; port = [NSPort port]; c = [c initWithReceivePort: port sendPort: nil]; - [d setObject: c forKey: tkey]; - RELEASE(c); + if (c != nil) + { + [d setObject: c forKey: tkey]; + RELEASE(c); + } } return c; }