Skip to content

Commit

Permalink
dcache: NPE on removal via WebDAV and token
Browse files Browse the repository at this point in the history
Motivation

NPE was accuring while sending kafka messages, when JwtJtiPrincipal was used.

Modification

fix the NPE error when toString was called

Target: master, 8.2 8.1 8.0 7.2 7.1 7.0
Require-book: no
Require-notes: yes
Acked-by: Paul Millar
  • Loading branch information
mksahakyan committed Oct 4, 2022
1 parent 1b99965 commit 8b39f49
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -49,6 +49,9 @@ public boolean equals(Object other) {
return true;
}

if (other == null) {
return false;
}
return this.getClass().equals(other.getClass())
&& ((Principal) other).getName().equals(name);
}
Expand Down

0 comments on commit 8b39f49

Please sign in to comment.