mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
avoid attempt to insert nil object into dictionary
This commit is contained in:
1 parent
2471a5f05d
commit
b95f5bc83c
1 file changed
+4
-1
Vendored
+4
-1
@@ -84,7 +84,10 @@ finally:
|
||||
NSDictionary *signingDict = CFBridgingRelease(signingInfo);
|
||||
NSMutableDictionary *relevantInfo = [NSMutableDictionary dictionary];
|
||||
for (NSString *key in @[@"format", @"identifier", @"requirements", @"teamid", @"signing-time"]) {
|
||||
relevantInfo[key] = signingDict[key];
|
||||
id value = nil;
|
||||
if ((value = signingDict[key])) {
|
||||
relevantInfo[key] = value;
|
||||
}
|
||||
}
|
||||
NSDictionary *infoPlist = signingDict[@"info-plist"];
|
||||
relevantInfo[@"version"] = infoPlist[@"CFBundleShortVersionString"];
|
||||
|
||||
Reference in new issue
Block a user