Skip to content
Snippets Groups Projects
Commit 51fc33dd authored by Clemens Klein-Robbenhaar's avatar Clemens Klein-Robbenhaar
Browse files

XWIKI-10100: TRANSPORT_ERROR with SSO in tree view

 * avoid the NPE if the credentials are null
parent 1dc90d92
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,8 @@ public boolean verify(String identifier, char[] secret) throws IllegalArgumentEx
XWiki xwiki = Utils.getXWiki(this.componentManager);
try {
Principal principal = xwiki.getAuthService().authenticate(identifier, new String(secret), xwikiContext);
Principal principal = (secret == null) ? null : xwiki.getAuthService().authenticate(identifier,
new String(secret), xwikiContext);
if (principal != null) {
String xwikiUser = principal.getName();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment