Skip to content

Commit

Permalink
Added nil check based on other pull request
Browse files Browse the repository at this point in the history
NitinJami#7

* Also includes new binary compiled and signed for iOS9
  • Loading branch information
dmayer committed Dec 26, 2015
1 parent a9549a9 commit 4893402
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Binary file modified keychaineditor
Binary file not shown.
8 changes: 5 additions & 3 deletions main.m
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,11 @@ void prepareJsonOutput(NSDictionary *results, NSString *find) {
forKey:@"Creation Time"];

[innerJSON setObject:checkForNoDataValue([eachItemFromResults objectForKey:(__bridge id)kSecValueData]) forKey:@"Data"];

[innerJSON setObject:checkUserPresence((__bridge SecAccessControlRef) \
([eachItemFromResults objectForKey:(__bridge id)(kSecAttrAccessControl)])) forKey:@"UserPresence"];

if([eachItemFromResults objectForKey:(__bridge id)(kSecAttrAccessControl)]) {
[innerJSON setObject: checkUserPresence((__bridge SecAccessControlRef) \
([eachItemFromResults objectForKey:(__bridge id)(kSecAttrAccessControl)])) forKey:@"UserPresence"];
}

[parentJSON setObject:innerJSON forKey:[NSString stringWithFormat:@"%lu", (unsigned long)++index]];
}
Expand Down

0 comments on commit 4893402

Please sign in to comment.