We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74563f9 commit 82a97abCopy full SHA for 82a97ab
core/src/main/java/org/apache/shiro/authc/credential/SimpleCredentialsMatcher.java
@@ -99,7 +99,7 @@ protected Object getCredentials(AuthenticationInfo info) {
99
* @return {@code true} if the {@code tokenCredentials} are equal to the {@code accountCredentials}.
100
*/
101
protected boolean equals(Object tokenCredentials, Object accountCredentials) {
102
- if (LOGGER.isDebugEnabled()) {
+ if (LOGGER.isDebugEnabled() && tokenCredentials != null) {
103
LOGGER.debug("Performing credentials equality check for tokenCredentials of type ["
104
+ tokenCredentials.getClass().getName() + " and accountCredentials of type ["
105
+ accountCredentials.getClass().getName() + "]");
0 commit comments