Fixed potention null-pointer derefencing

This commit is contained in:
michael starke
2016-08-17 14:24:01 +02:00
parent 70247eb8fc
commit 9f40dfae42

View File

@@ -152,7 +152,9 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey
return YES; // key is set, so autosave should be save return YES; // key is set, so autosave should be save
} }
NSDictionary *userInfo = @{ NSLocalizedDescriptionKey: NSLocalizedString(@"NO_PASSWORD_OR_KEY_SET", "") }; NSDictionary *userInfo = @{ NSLocalizedDescriptionKey: NSLocalizedString(@"NO_PASSWORD_OR_KEY_SET", "") };
*outError = [NSError errorWithDomain:MPErrorDomain code:0 userInfo:userInfo]; if(outError != NULL) {
*outError = [NSError errorWithDomain:MPErrorDomain code:0 userInfo:userInfo];
}
return NO; return NO;
} }