From a20ae67dccb9c19a323c263d0c552adda3fe3460 Mon Sep 17 00:00:00 2001 From: khcrysalis <97859147+khcrysalis@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:37:53 -0700 Subject: [PATCH] fix: uncaught error when loading non-existent manager icons --- palera1nLoader/View/ViewController.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/palera1nLoader/View/ViewController.swift b/palera1nLoader/View/ViewController.swift index 118ff510..9095495d 100644 --- a/palera1nLoader/View/ViewController.swift +++ b/palera1nLoader/View/ViewController.swift @@ -340,6 +340,15 @@ extension ViewController { } return image } + + if (iconImages == nil) { + DispatchQueue.main.async { + self.isLoading = false + self.isError = true + self.tableView.reloadSections(IndexSet(integer: 0), with: .automatic) + } + break + } self.iconImages = iconImages!