forked from I2P_Developers/i2p.i2p
Susimail: Fix NPE
This commit is contained in:
@@ -1138,9 +1138,15 @@ public class WebMail extends HttpServlet
|
||||
sessionObject.info = _t("Configuration reloaded");
|
||||
}
|
||||
if( buttonPressed( request, REFRESH ) ) {
|
||||
POP3MailBox mailbox = sessionObject.mailbox;
|
||||
if (mailbox == null) {
|
||||
sessionObject.error += _t("Internal error, lost connection.") + '\n';
|
||||
sessionObject.state = STATE_AUTH;
|
||||
return;
|
||||
}
|
||||
// TODO how to do a "No new mail" message?
|
||||
sessionObject.mailbox.refresh();
|
||||
sessionObject.error += sessionObject.mailbox.lastError();
|
||||
mailbox.refresh();
|
||||
sessionObject.error += mailbox.lastError();
|
||||
sessionObject.mailCache.getMail(MailCache.FetchMode.HEADER);
|
||||
// get through cache so we have the disk-only ones too
|
||||
String[] uidls = sessionObject.mailCache.getUIDLs();
|
||||
|
Reference in New Issue
Block a user