git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@750953
13f79535-47bb-0310-9956-
ffa450edef68
}
User user = securitySystem.getUserManager().findUser( principal );
+ if ( user == null )
+ {
+ throw new UnauthorizedException( "The security system had an internal error - please check your system logs" );
+ }
if ( user.isLocked() )
{
throw new UnauthorizedException( "User account is locked." );
try
{
User user = securitySystem.getUserManager().findUser( principal );
+ if ( user == null )
+ {
+ throw new ArchivaSecurityException( "The security system had an internal error - please check your system logs" );
+ }
if ( user.isLocked() )
{
try
{
User user = securitySystem.getUserManager().findUser( principal );
+ if ( user == null )
+ {
+ throw new ArchivaSecurityException( "The security system had an internal error - please check your system logs" );
+ }
if ( user.isLocked() )
{