@@ -36,24 +36,22 @@ _errNo = errNo; return self; } -- (instancetype)init -{ - OF_INVALID_INIT_METHOD -} - - (void)dealloc { [_lock release]; [super dealloc]; } - (OFString *)description { - return [OFString stringWithFormat: - @"A lock of type %@ could not be unlocked: %s", - [_lock class], strerror(_errNo)]; + if (_lock != nil) + return [OFString stringWithFormat: + @"A lock of type %@ could not be unlocked: %s", + [_lock class], strerror(_errNo)]; + else + return @"A lock could not be unlocked!"; } @end