From b42ea1fdb6cb9032e16ee1a798eebcbf202ec0b2 Mon Sep 17 00:00:00 2001 From: Sean Kovacs Date: Wed, 27 Feb 2013 11:11:49 -0800 Subject: [PATCH] [Issue #803] Only set image in UIImageView category if non-nil Signed-off-by: Mattt Thompson --- AFNetworking/UIImageView+AFNetworking.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AFNetworking/UIImageView+AFNetworking.m b/AFNetworking/UIImageView+AFNetworking.m index fd0e071..8e7f4b7 100644 --- a/AFNetworking/UIImageView+AFNetworking.m +++ b/AFNetworking/UIImageView+AFNetworking.m @@ -117,7 +117,7 @@ static char kAFImageRequestOperationObjectKey; if ([urlRequest isEqual:[self.af_imageRequestOperation request]]) { if (success) { success(operation.request, operation.response, responseObject); - } else { + } else if (responseObject) { self.image = responseObject; }