@@ -395,12 +395,12 @@ } } - (void)removeLastItem { - if (count < 1) - @throw [OFOutOfRangeException exceptionWithClass: [self class]]; + if (count == 0) + return; count--; @try { data = [self resizeMemory: data size: itemSize @@ -661,12 +661,12 @@ - (void)removeLastItem { size_t newSize, lastPageByte; - if (count < 1) - @throw [OFOutOfRangeException exceptionWithClass: [self class]]; + if (count == 0) + return; count--; lastPageByte = of_pagesize - 1; newSize = (count * itemSize + lastPageByte) & ~lastPageByte;