We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4284b57 commit ddd03f7Copy full SHA for ddd03f7
SDWebImage/SDWebImageManager.m
@@ -69,6 +69,12 @@ - (NSString *)cacheKeyForURL:(NSURL *)url
69
url = [NSURL URLWithString:(NSString *)url];
70
}
71
72
+ // Prevents app crashing on argument type error like sending NSNull instead of NSURL
73
+ if (![url isKindOfClass:NSURL.class])
74
+ {
75
+ url = nil;
76
+ }
77
+
78
__block SDWebImageCombinedOperation *operation = SDWebImageCombinedOperation.new;
79
80
if (!url || !completedBlock || (!(options & SDWebImageRetryFailed) && [self.failedURLs containsObject:url]))
0 commit comments