File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ typedef void (^FICImageRequestCompletionBlock)(UIImage *sourceImage);
148148
149149 @param entity The entity that uniquely identifies the source image.
150150
151- @param formatName The format name that uniquely identifies which image table to look in for the cached image.
151+ @param formatName The format name that uniquely identifies which image table to look in for the cached image. Must not be nil.
152152
153153 @param completionBlock The completion block that is called when the requested image is available or if an error occurs.
154154
@@ -175,7 +175,7 @@ typedef void (^FICImageRequestCompletionBlock)(UIImage *sourceImage);
175175
176176 @param entity The entity that uniquely identifies the source image.
177177
178- @param formatName The format name that uniquely identifies which image table to look in for the cached image.
178+ @param formatName The format name that uniquely identifies which image table to look in for the cached image. Must not be nil.
179179
180180 @param completionBlock The completion block that is called when the requested image is available or if an error occurs.
181181
Original file line number Diff line number Diff line change @@ -162,6 +162,8 @@ - (BOOL)asynchronouslyRetrieveImageForEntity:(id <FICEntity>)entity withFormatNa
162162}
163163
164164- (BOOL )_retrieveImageForEntity : (id <FICEntity>)entity withFormatName : (NSString *)formatName loadSynchronously : (BOOL )loadSynchronously completionBlock : (FICImageCacheCompletionBlock)completionBlock {
165+ NSParameterAssert (formatName);
166+
165167 BOOL imageExists = NO ;
166168
167169 FICImageTable *imageTable = [_imageTables objectForKey: formatName];
You can’t perform that action at this time.
0 commit comments