Permalink
Browse files

Return nil from SDScaledImageForKey if the input image is nil. Replaces

#750. Fixes #365
  • Loading branch information...
1 parent f6fdaeb commit e4104942ee13e2ddc0a98fad79636d9061fc5e6e @bpoplauschi bpoplauschi committed Jun 18, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 SDWebImage/SDWebImageCompat.m
@@ -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];

0 comments on commit e410494

Please sign in to comment.