From 282c5c2f63ef8d72051937d425f127e2e8910ead Mon Sep 17 00:00:00 2001
From: Zorg <zorgiepoo@gmail.com>
Date: Sun, 10 Nov 2024 21:14:20 -0800
Subject: [PATCH] Suppress nil analyzer warning

---
 Sparkle/SUAppcastDriver.m | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Sparkle/SUAppcastDriver.m b/Sparkle/SUAppcastDriver.m
index 9faea12b4..b55189f73 100644
--- a/Sparkle/SUAppcastDriver.m
+++ b/Sparkle/SUAppcastDriver.m
@@ -434,7 +434,10 @@ + (SUAppcastItem *)bestItemFromAppcastItems:(NSArray *)appcastItems getDeltaItem
     // Give the delegate a chance to provide a custom version comparator
     id<SPUUpdaterDelegate> updaterDelegate = _updaterDelegate;
     if ([updaterDelegate respondsToSelector:@selector((versionComparatorForUpdater:))]) {
-        comparator = [updaterDelegate versionComparatorForUpdater:_updater];
+        SPUUpdater *updater = _updater;
+        if (updater != nil) {
+            comparator = [updaterDelegate versionComparatorForUpdater:updater];
+        }
     }
 #pragma clang diagnostic pop