Merge pull request #1323 from initlifeinc/master

don't to perform download if url is "" but not nil
This commit is contained in:
Konstantinos K. 2015-09-30 08:39:19 +03:00
commit 7a48ca6dad
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@
isFailedUrl = [self.failedURLs containsObject:url];
}
if (!url || (!(options & SDWebImageRetryFailed) && isFailedUrl)) {
if (url.absoluteString.length == 0 || (!(options & SDWebImageRetryFailed) && isFailedUrl)) {
dispatch_main_sync_safe(^{
NSError *error = [NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorFileDoesNotExist userInfo:nil];
completedBlock(nil, error, SDImageCacheTypeNone, YES, url);