From 2ae5f342daf05b8fa865458ed51a616dda163ab6 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Fri, 22 May 2015 13:47:48 -0400 Subject: [PATCH] Fix a crasher --- SoObjects/SOGo/SOGoUserManager.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SoObjects/SOGo/SOGoUserManager.m b/SoObjects/SOGo/SOGoUserManager.m index 300ea7000..cfc159c3c 100644 --- a/SoObjects/SOGo/SOGoUserManager.m +++ b/SoObjects/SOGo/SOGoUserManager.m @@ -496,6 +496,8 @@ static Class NSNullK; dd = [SOGoSystemDefaults sharedSystemDefaults]; + username = _login; + if (*_domain) { if ([_login rangeOfString: @"@"].location == NSNotFound) @@ -505,8 +507,6 @@ static Class NSNullK; { NSRange r; - username = _login; - // We try to extract the domain in use in order to avoid pounding all the authentication // sources if SOGoLoginDomains isn't specified. This is also true if the user is // using DAV or EAS.