mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-14 03:32:22 -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) {
|
protected String[] getRequestedHeaders(String partIndexString) {
|
||||||
|
if (partIndexString == null) {
|
||||||
|
return null;
|
||||||
|
} else {
|
||||||
int startIndex = partIndexString.indexOf('(');
|
int startIndex = partIndexString.indexOf('(');
|
||||||
int endIndex = partIndexString.indexOf(')');
|
int endIndex = partIndexString.indexOf(')');
|
||||||
if (startIndex >= 0 && endIndex >= 0) {
|
if (startIndex >= 0 && endIndex >= 0) {
|
||||||
@ -804,6 +807,7 @@ public class ImapConnection extends AbstractConnection {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected void handleStore(String commandId, AbstractRangeIterator rangeIterator, String action, String flags) throws IOException {
|
protected void handleStore(String commandId, AbstractRangeIterator rangeIterator, String action, String flags) throws IOException {
|
||||||
while (rangeIterator.hasNext()) {
|
while (rangeIterator.hasNext()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user