git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1424973 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-21 15:32:24 +00:00
parent dc712ce923
commit a522ed98fb
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ public class DefaultLoginService
SecuritySession securitySession = httpAuthenticator.getSecuritySession( httpServletRequest.getSession( true ) );
Boolean isLogged = securitySession != null;
log.debug( "isLogged {}", isLogged );
return isLogged ? buildRestUser( securitySession.getUser() ) : null;
return isLogged && securitySession.getUser() != null ? buildRestUser( securitySession.getUser() ) : null;
}
public Boolean logout()