mirror of
https://github.com/moparisthebest/davmail
synced 2025-03-04 19:29:46 -05:00
IMAP: fix nullpointerException in header fetch
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1545 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
e16e2bd530
commit
7bab6a0a66
@ -796,6 +796,9 @@ public class ImapConnection extends AbstractConnection {
|
||||
}
|
||||
|
||||
protected String[] getRequestedHeaders(String partIndexString) {
|
||||
if (partIndexString == null) {
|
||||
return null;
|
||||
} else {
|
||||
int startIndex = partIndexString.indexOf('(');
|
||||
int endIndex = partIndexString.indexOf(')');
|
||||
if (startIndex >= 0 && endIndex >= 0) {
|
||||
@ -804,6 +807,7 @@ public class ImapConnection extends AbstractConnection {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void handleStore(String commandId, AbstractRangeIterator rangeIterator, String action, String flags) throws IOException {
|
||||
while (rangeIterator.hasNext()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user