From 8e16d836dd97427dbd525b96cf9a99cb5811a45a Mon Sep 17 00:00:00 2001 From: sundi Date: Thu, 30 Nov 2017 11:23:51 +0800 Subject: [PATCH] fix carsh --- YYWebImage/YYWebImageOperation.m | 1 + 1 file changed, 1 insertion(+) diff --git a/YYWebImage/YYWebImageOperation.m b/YYWebImage/YYWebImageOperation.m index 30ac1eb..1aab6c0 100644 --- a/YYWebImage/YYWebImageOperation.m +++ b/YYWebImage/YYWebImageOperation.m @@ -689,6 +689,7 @@ - (void)connectionDidFinishLoading:(NSURLConnection *)connection { } break; } if ([self isCancelled]) return; + if (!image) return; if (self.transform && image) { UIImage *newImage = self.transform(image, self.request.URL);