NPE free
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:
parent
dc712ce923
commit
a522ed98fb
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue