mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
57a142b3cb
commit
29185422e4
|
@ -4527,15 +4527,16 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
|
|
||||||
// Find recipient
|
// Find recipient
|
||||||
InputStream is = null;
|
InputStream is = null;
|
||||||
for (RecipientInformation recipientInfo : recipients) {
|
if (chain[0].getSerialNumber() != null)
|
||||||
KeyTransRecipientId recipientId = (KeyTransRecipientId) recipientInfo.getRID();
|
for (RecipientInformation recipientInfo : recipients) {
|
||||||
if (recipientId.getSerialNumber().equals(chain[0].getSerialNumber()))
|
KeyTransRecipientId recipientId = (KeyTransRecipientId) recipientInfo.getRID();
|
||||||
try {
|
if (chain[0].getSerialNumber().equals(recipientId.getSerialNumber()))
|
||||||
is = recipientInfo.getContentStream(recipient).getContentStream();
|
try {
|
||||||
} catch (CMSException ex) {
|
is = recipientInfo.getContentStream(recipient).getContentStream();
|
||||||
Log.w(ex);
|
} catch (CMSException ex) {
|
||||||
}
|
Log.w(ex);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Fallback: try all recipients
|
// Fallback: try all recipients
|
||||||
if (is == null)
|
if (is == null)
|
||||||
|
|
Loading…
Reference in New Issue