From 93b8700060d567222b7285d4617cfbaff45db99c Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 28 Mar 2021 17:10:10 -0700 Subject: [PATCH] Add self.driver != nil assert --- Sparkle/SPUUpdater.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Sparkle/SPUUpdater.m b/Sparkle/SPUUpdater.m index b66aa1d7..8c9d31a8 100644 --- a/Sparkle/SPUUpdater.m +++ b/Sparkle/SPUUpdater.m @@ -544,6 +544,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification } self.driver = d; + assert(self.driver != nil); // Because an application can change the configuration (eg: the feed url) at any point, we should always check if it's valid NSError *configurationError = nil;