Skip to content

Commit

Permalink
Issue #3
Browse files Browse the repository at this point in the history
fix npe in JAAS submodule when no credentials provided
  • Loading branch information
Paul Hethmon committed May 2, 2014
1 parent 669cb19 commit dae05b5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
Binary file added distribution/multi-context-broker-1.1.4.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion mcb-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>edu.internet2.middleware.assurance.mcb</groupId>
<artifactId>multi-context-broker</artifactId>
<version>1.1.3</version>
<version>1.1.4</version>
<packaging>jar</packaging>

<name>multi-context-broker</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,11 @@ public void handle(final Callback[] callbacks) throws UnsupportedCallbackExcepti
ncb.setName(uname);
} else if (cb instanceof PasswordCallback) {
PasswordCallback pcb = (PasswordCallback) cb;
pcb.setPassword(pass.toCharArray());
if (pass != null) {
pcb.setPassword(pass.toCharArray());
} else {
pcb.setPassword(null);
}
}
}
}
Expand Down

0 comments on commit dae05b5

Please sign in to comment.