mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
fix nullpointerexcpetion on first login
This commit is contained in:
@@ -127,7 +127,7 @@ public class AuthenticationResource
|
||||
if ((user != null) &&!SCMContext.USER_ANONYMOUS.equals(user.getName()))
|
||||
{
|
||||
state = new ScmState(contextProvider, securityContext,
|
||||
repositoryManger.getTypes());
|
||||
repositoryManger.getConfiguredTypes());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -161,7 +161,7 @@ public class AuthenticationResource
|
||||
if (user != null)
|
||||
{
|
||||
ScmState state = new ScmState(contextProvider, securityContext,
|
||||
repositoryManger.getTypes());
|
||||
repositoryManger.getConfiguredTypes());
|
||||
|
||||
resp = Response.ok(state).build();
|
||||
}
|
||||
@@ -199,7 +199,7 @@ public class AuthenticationResource
|
||||
}
|
||||
|
||||
state = new ScmState(contextProvider, securityContext,
|
||||
repositoryManger.getTypes());
|
||||
repositoryManger.getConfiguredTypes());
|
||||
response = Response.ok(state).build();
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user