Skip to content

Commit

Permalink
fix NPE when from of a message is null. issue #2724
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Dec 8, 2024
1 parent d467adf commit 203d349
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,10 @@ public static void setMessageImpl(MailContentUI contentUI, Message msg, MailboxS
lblSentDate.setText(sentString);
lblSubject.setText(copiedMsg.getSubject());
lblSubject.setToolTipText("Klicken, um in Zwischenablage zu kopieren:" + System.lineSeparator() + lblSubject.getText());
lblFrom.setText(MimeUtility.decodeText(copiedMsg.getFrom()[0].toString()));
if(copiedMsg.getFrom()!=null && copiedMsg.getFrom().length>0)
lblFrom.setText(MimeUtility.decodeText(copiedMsg.getFrom()[0].toString()));
else
lblFrom.setText("");
lblFrom.setToolTipText("Klicken, um in Zwischenablage zu kopieren:" + System.lineSeparator() + lblFrom.getText());

String to = "";
Expand Down

0 comments on commit 203d349

Please sign in to comment.