Index: src/OFArray.m ================================================================== --- src/OFArray.m +++ src/OFArray.m @@ -34,11 +34,19 @@ return [[[OFBigArray alloc] initWithItemSize: is] autorelease]; } - initWithItemSize: (size_t)is { + Class c; + self = [super init]; + + if (is == 0) { + c = isa; + [self free]; + @throw [OFInvalidArgumentException newWithClass: c]; + } data = NULL; itemsize = is; items = 0;