Skip to content

Commit

Permalink
Merge pull request #31 from anashalb/master
Browse files Browse the repository at this point in the history
Nil check before adding to cached values
  • Loading branch information
superfell authored Oct 16, 2016
2 parents 2e57636 + e763626 commit 17a27c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zkSforce/zkXmlDeserializer.m
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ - (NSData *)blob:(NSString *)elem {
if (cached == nil) {
NSString *b64 = [self string:elem fromXmlElement:node];
cached = [b64 ZKBase64Decode];
[values setObject:cached forKey:elem];

if (cached != nil)
[values setObject:cached forKey:elem];
}
return cached;
}
Expand Down

0 comments on commit 17a27c6

Please sign in to comment.