Return nil from SDScaledImageForKey if the input image is nil. Replaces #750. Fixes #365

This commit is contained in:
Bogdan Poplauschi 2014-06-18 15:28:13 +03:00
parent f6fdaeb6ae
commit e4104942ee
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,10 @@
#endif
inline UIImage *SDScaledImageForKey(NSString *key, UIImage *image) {
if (!image) {
return nil;
}
if ([image.images count] > 0) {
NSMutableArray *scaledImages = [NSMutableArray array];