Merge pull request #8541 from TexasDigitalLibrary/DSpace-8450

DS-8450 Fixes the null subject in the request acceptance email
This commit is contained in:
Tim Donohue
2022-10-31 15:16:55 -05:00
committed by GitHub

View File

@@ -355,7 +355,7 @@ public class Email {
for (String headerName : config.getArrayProperty("mail.message.headers")) {
String headerValue = (String) vctx.get(headerName);
if ("subject".equalsIgnoreCase(headerName)) {
if (null != subject) {
if (null != headerValue) {
subject = headerValue;
}
} else if ("charset".equalsIgnoreCase(headerName)) {