From b95f5bc83c297b20ae080e8cf74da475cd6026ed Mon Sep 17 00:00:00 2001 From: Ulrich Zurucker Date: Tue, 15 Jul 2014 13:14:04 +0200 Subject: [PATCH] avoid attempt to insert nil object into dictionary --- Sparkle/SUCodeSigningVerifier.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sparkle/SUCodeSigningVerifier.m b/Sparkle/SUCodeSigningVerifier.m index b7517fdd..33a56a62 100644 --- a/Sparkle/SUCodeSigningVerifier.m +++ b/Sparkle/SUCodeSigningVerifier.m @@ -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"];