Skip to content

Commit

Permalink
Merge pull request DSpace#9429 from amgciadev/fix-9428-b
Browse files Browse the repository at this point in the history
Fix packager NPE if using the passwords=true option
  • Loading branch information
tdonohue authored May 1, 2024
2 parents 9da023c + 04824a2 commit e632c30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ protected void writeEPerson(EPerson eperson, XMLStreamWriter writer,

if (emitPassword) {
PasswordHash password = ePersonService.getPasswordHash(eperson);
if (null != password) {
if (null != password && password.getHashString() != null) {
writer.writeStartElement(PASSWORD_HASH);

String algorithm = password.getAlgorithm();
Expand Down

0 comments on commit e632c30

Please sign in to comment.