1
0
mirror of https://github.com/moparisthebest/davmail synced 2025-01-05 18:58:02 -05:00

IMAP: fix 3553942, unexpected imap NIL response

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1984 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2012-08-03 09:57:15 +00:00
parent 0f47689ecd
commit 628dd2c85e

View File

@ -991,7 +991,7 @@ public class ImapConnection extends AbstractConnection {
try {
String unfoldedValue = MimeUtility.unfold(value[0]);
InternetAddress[] addresses = InternetAddress.parseHeader(unfoldedValue, false);
if (addresses != null && addresses.length > 1) {
if (addresses != null && addresses.length > 0) {
buffer.append('(');
for (InternetAddress address : addresses) {
buffer.append('(');