diff --git a/Tusker/Screens/Large Image/LoadingLargeImageViewController.swift b/Tusker/Screens/Large Image/LoadingLargeImageViewController.swift index 08cdf948..8d231212 100644 --- a/Tusker/Screens/Large Image/LoadingLargeImageViewController.swift +++ b/Tusker/Screens/Large Image/LoadingLargeImageViewController.swift @@ -94,11 +94,11 @@ class LoadingLargeImageViewController: UIViewController, LargeImageAnimatableVie loadingVC = LoadingViewController() embedChild(loadingVC!) imageRequest = cache.get(url, loadOriginal: true) { [weak self] (data, image) in - guard let self = self else { return } + guard let self = self, let image = image else { return } self.imageRequest = nil DispatchQueue.main.async { self.loadingVC?.removeViewAndController() - self.createLargeImage(data: data!, image: image!, url: self.url) + self.createLargeImage(data: data, image: image, url: self.url) } } }