@@ -196,8 +196,8 @@ public extension ImageDownloader {
self.requestModifier?(request)
- // There is a possiblility that request modifier changed the url to `nil`
- if request.URL == nil {
+ // There is a possiblility that request modifier changed the url to `nil` or empty.
+ if request.URL == nil || request.URL!.absoluteString.isEmpty {
completionHandler?(image: nil, error: NSError(domain: KingfisherErrorDomain, code: KingfisherError.InvalidURL.rawValue, userInfo: nil), imageURL: nil, originalData: nil)
return
}