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
  • Loading branch information
bpoplauschi authored and devedup committed Sep 10, 2014
1 parent 13fdcf1 commit 721d67d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SDWebImage/SDWebImageCompat.m
Original file line number Diff line number Diff line change
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 721d67d

Please sign in to comment.