1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-27 16:33:47 +00:00

Prevent crash

This commit is contained in:
M66B 2019-12-23 12:58:01 +01:00
parent 57a142b3cb
commit 29185422e4

View file

@ -4527,9 +4527,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
// Find recipient
InputStream is = null;
if (chain[0].getSerialNumber() != null)
for (RecipientInformation recipientInfo : recipients) {
KeyTransRecipientId recipientId = (KeyTransRecipientId) recipientInfo.getRID();
if (recipientId.getSerialNumber().equals(chain[0].getSerialNumber()))
if (chain[0].getSerialNumber().equals(recipientId.getSerialNumber()))
try {
is = recipientInfo.getContentStream(recipient).getContentStream();
} catch (CMSException ex) {