diff --git a/SoObjects/SOGo/SQLSource.m b/SoObjects/SOGo/SQLSource.m index 388fc4742..9e8d653e4 100644 --- a/SoObjects/SOGo/SQLSource.m +++ b/SoObjects/SOGo/SQLSource.m @@ -133,6 +133,9 @@ - (BOOL) _isPassword: (NSString *) plainPassword equalTo: (NSString *) encryptedPassword { + if (!plainPassword || !encryptedPassword) + return NO; + if ([_userPasswordAlgorithm caseInsensitiveCompare: @"none"] == NSOrderedSame) { return [plainPassword isEqualToString: encryptedPassword];