authorizationException = e;
}
- if ( result.isAuthorized() )
+ if ( result != null && result.isAuthorized() )
{
return result;
}
throws UserManagerException
{
UserManager userManager = findFirstWritable();
- if ( userManager.isReadOnly() )
+ if ( userManager == null )
{
log.warn( "cannot find writable user manager implementation, skip guest user creation" );
return null;