Fix failing tests
This commit is contained in:
parent
da7ea43f77
commit
76b66472d4
1 changed files with 8 additions and 0 deletions
|
@ -70,6 +70,10 @@ public class MessageDecryptVerifier {
|
|||
}
|
||||
|
||||
Multipart multipart = (Multipart) body;
|
||||
if (multipart.getCount() == 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
BodyPart firstBodyPart = multipart.getBodyPart(0);
|
||||
|
||||
Part foundPart;
|
||||
|
@ -92,6 +96,10 @@ public class MessageDecryptVerifier {
|
|||
Body body = part.getBody();
|
||||
if (part.isMimeType("multipart/alternative") && body instanceof Multipart) {
|
||||
Multipart multipart = (Multipart) body;
|
||||
if (multipart.getCount() == 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
BodyPart firstBodyPart = multipart.getBodyPart(0);
|
||||
if (isPartPgpInlineEncryptedOrSigned(firstBodyPart)) {
|
||||
return firstBodyPart;
|
||||
|
|
Loading…
Reference in a new issue