Fix for warning in in SUAppcast.m now tests for nil instead of using setValue:forKey:

This commit is contained in:
Jerry Krinock committed 2016-06-17 20:23:32 -07:00
1 parent 53983d9452
commit 7892e41b27
1 file changed
+4 -1
+4 -1
View File
@@ -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;
}