From 7892e41b27ce468af372f1e95989eb45e6e37893 Mon Sep 17 00:00:00 2001 From: Jerry Krinock Date: Fri, 17 Jun 2016 20:23:32 -0700 Subject: [PATCH] Fix for warning in in SUAppcast.m now tests for nil instead of using setValue:forKey: --- Sparkle/SUAppcast.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sparkle/SUAppcast.m b/Sparkle/SUAppcast.m index 9a2185c7..d4f32fd9 100644 --- a/Sparkle/SUAppcast.m +++ b/Sparkle/SUAppcast.m @@ -128,7 +128,10 @@ if (!attrName) { continue; } - [dictionary setValue:[attribute stringValue] forKey:attrName]; + NSString *stringValue = [attribute stringValue]; + if (stringValue) { + [dictionary setObject:stringValue forKey:attrName]; + } } return dictionary; }