2
0

Fixed potential crashed due to rare nil values at checkpoints.

[FIXED]     Avoid nil values at checkpoints since they will cause crashes.
This commit is contained in:
Maarten Billemont
2013-08-15 19:38:05 -04:00
parent 0a5329fe17
commit 2d8146edbd
7 changed files with 49 additions and 52 deletions

View File

@@ -74,7 +74,7 @@ static NSDictionary *keyQuery(MPUserEntity *user) {
- (BOOL)signInAsUser:(MPUserEntity *)user saveInContext:(NSManagedObjectContext *)moc usingMasterPassword:(NSString *)password {
if (password)
NSAssert(![NSThread isMainThread], @"Computing key must not happen from the main thread.");
NSAssert(![NSThread isMainThread], @"Computing key must not happen from the main thread.");
MPKey *tryKey = nil;