diff --git a/platform-darwin/Source/MPAppDelegate_Key.m b/platform-darwin/Source/MPAppDelegate_Key.m index 2a7ada9b..21c84720 100644 --- a/platform-darwin/Source/MPAppDelegate_Key.m +++ b/platform-darwin/Source/MPAppDelegate_Key.m @@ -82,8 +82,11 @@ static NSDictionary *createKeyQuery(MPUserEntity *user, BOOL newItem, MPKeyOrigi if ([key keyIDForAlgorithm:user.algorithm]) inf( @"Found key in keychain for user: %@", user.userID ); - else + + else { inf( @"No key found in keychain for user: %@", user.userID ); + key = nil; + } return key; }