@@ -26,15 +26,10 @@ + (instancetype)exceptionWithThread: (OFThread*)thread { return [[[self alloc] initWithThread: thread] autorelease]; } -- init -{ - OF_INVALID_INIT_METHOD -} - - initWithThread: (OFThread*)thread { self = [super init]; _thread = [thread retain]; @@ -49,10 +44,15 @@ [super dealloc]; } - (OFString*)description { - return [OFString stringWithFormat: - @"Deallocation of a thread of type %@ was tried, even though it " - @"was still running!", [_thread class]]; + if (_thread) + return [OFString stringWithFormat: + @"Deallocation of a thread of type %@ was tried, even " + @"though it was still running!", + [_thread class]]; + else + return @"Deallocation of a thread was tried, even though it " + @"was still running!"; } @end