mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-06 03:08:02 -05:00
Adjust attachment index after refactoring
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@103 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
3010981b05
commit
44e4ebf07c
@ -887,10 +887,10 @@ public class ExchangeSession {
|
||||
|
||||
// detect part boundary start
|
||||
if (line.equals(mimeHeader.boundary)) {
|
||||
Attachment currentAttachment = null;
|
||||
Attachment currentAttachment;
|
||||
String currentAttachmentName = null;
|
||||
if (attachmentIndex < attachments.size()) {
|
||||
currentAttachment = attachments.get(attachmentIndex);
|
||||
if (attachmentIndex > 0 && attachmentIndex <= attachments.size()) {
|
||||
currentAttachment = attachments.get(attachmentIndex - 1);
|
||||
currentAttachmentName = currentAttachment.name;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user