mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-12 18:52:21 -05:00
fix nullpointer on quit in pop connection when no session created
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@80 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
16a4b4c5a6
commit
dfd6cc12ee
@ -71,7 +71,9 @@ public class PopConnection extends AbstractConnection {
|
|||||||
|
|
||||||
if ("QUIT".equalsIgnoreCase(command)) {
|
if ("QUIT".equalsIgnoreCase(command)) {
|
||||||
// delete messages before quit
|
// delete messages before quit
|
||||||
session.purgeOldestTrashMessages();
|
if (session != null) {
|
||||||
|
session.purgeOldestTrashMessages();
|
||||||
|
}
|
||||||
sendOK("Bye");
|
sendOK("Bye");
|
||||||
break;
|
break;
|
||||||
} else if ("USER".equalsIgnoreCase(command)) {
|
} else if ("USER".equalsIgnoreCase(command)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user