1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

IMAP: Fix 3109303 Handle null string during mail fetch

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1547 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-11-18 22:13:07 +00:00
parent 9854dfcf9d
commit 1a2d67afe0

View File

@ -703,7 +703,7 @@ public class ImapConnection extends AbstractConnection {
MimeMessage mimeMessage = message.getMimeMessage();
// try to parse message part index
String partIndexString = StringUtil.getToken(param, "[", "]");
if ("".equals(partIndexString)) {
if ("".equals(partIndexString) || partIndexString == null) {
// write message with headers
partOutputStream = new PartialOutputStream(baos, startIndex, maxSize);
partInputStream = message.getRawInputStream();