Manos Chorianopoulos

fix null merchant image crash

...@@ -237,8 +237,8 @@ extension UIImage { ...@@ -237,8 +237,8 @@ extension UIImage {
237 237
238 } else { 238 } else {
239 //No cache, so create new one and set image 239 //No cache, so create new one and set image
240 - let url = URL(string: urlString) 240 + if let url = URL(string: urlString) {
241 - URLSession.shared.dataTask(with: url!, completionHandler: { (data, response, error) in 241 + URLSession.shared.dataTask(with: url, completionHandler: { (data, response, error) in
242 if let error = error { 242 if let error = error {
243 print(error) 243 print(error)
244 return 244 return
...@@ -254,6 +254,7 @@ extension UIImage { ...@@ -254,6 +254,7 @@ extension UIImage {
254 }).resume() 254 }).resume()
255 } 255 }
256 } 256 }
257 + }
257 } 258 }
258 259
259 typealias GradientPoints = (startPoint: CGPoint, endPoint: CGPoint) 260 typealias GradientPoints = (startPoint: CGPoint, endPoint: CGPoint)
......