Prevent crash

This commit is contained in:
M66B 2022-01-06 16:14:31 +01:00
parent a97e189263
commit 583a82051e
1 changed files with 1 additions and 1 deletions

View File

@ -2397,7 +2397,7 @@ public class HtmlHelper {
ByteArrayInputStream bis = new ByteArrayInputStream(headers.getBytes());
String[] received = new InternetHeaders(bis).getHeader("Received");
if (received.length > 0) {
if (received != null && received.length > 0) {
ssb.append('\n');
for (int i = received.length - 1; i >= 0; i--) {
String h = MimeUtility.unfold(received[i]);