Skip to content

Commit

Permalink
Return nil from SDScaledImageForKey if the input image is nil. Replaces
Browse files Browse the repository at this point in the history
#750. Fixes #365
  • Loading branch information
bpoplauschi committed Jun 18, 2014
1 parent f6fdaeb commit e410494
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SDWebImage/SDWebImageCompat.m
Expand Up @@ -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];

Expand Down

0 comments on commit e410494

Please sign in to comment.