Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-42739] Fix the NPE
  • Loading branch information
fbelzunc committed Mar 14, 2017
1 parent 3f16b77 commit 44528ab
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -296,7 +296,7 @@ public UserDetails retrieveUser(final String username, final String password, fi
UserDetails userDetails;
String hashKey = username + "@@" + DigestUtils.sha1Hex(password);
final String bindName = domain.getBindName();
final String bindPassword = domain.getBindPassword().getPlainText();
final String bindPassword = Secret.toString(domain.getBindPassword());
try {
final ActiveDirectoryUserDetail[] cacheMiss = new ActiveDirectoryUserDetail[1];
userDetails = userCache.get(hashKey, new Callable<UserDetails>() {
Expand Down

0 comments on commit 44528ab

Please sign in to comment.