mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Guard against delegate returning nil channels incorrectly
This commit is contained in:
1 parent
bc7e2d4845
commit
64484507b5
1 file changed
+4
Vendored
+4
@@ -169,6 +169,10 @@
|
||||
NSSet<NSString *> *allowedChannels;
|
||||
if ([self.updaterDelegate respondsToSelector:@selector(allowedChannelsForUpdater:)]) {
|
||||
allowedChannels = [self.updaterDelegate allowedChannelsForUpdater:self.updater];
|
||||
if (allowedChannels == nil) {
|
||||
SULog(SULogLevelError, @"Error: -allowedChannelsForUpdater: cannot return nil. Treating this as an empty set.");
|
||||
allowedChannels = [NSSet set];
|
||||
}
|
||||
} else {
|
||||
allowedChannels = [NSSet set];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user