forked from I2P_Developers/i2p.i2p
susimail: Fix NPE when deleting last message (ticket #414)
This commit is contained in:
@ -1287,10 +1287,15 @@ public class WebMail extends HttpServlet
|
||||
|
||||
if( sessionObject.state == STATE_SHOW ) {
|
||||
processMessageButtons( sessionObject, request );
|
||||
Mail mail = sessionObject.mailCache.getMail( sessionObject.showUIDL, MailCache.FETCH_ALL );
|
||||
if( mail != null && mail.error.length() > 0 ) {
|
||||
sessionObject.error += mail.error;
|
||||
mail.error = "";
|
||||
// If the last message has just been deleted then
|
||||
// sessionObject.state = STATE_LIST and
|
||||
// sessionObject.showUIDL = null
|
||||
if ( sessionObject.showUIDL != null ) {
|
||||
Mail mail = sessionObject.mailCache.getMail( sessionObject.showUIDL, MailCache.FETCH_ALL );
|
||||
if( mail != null && mail.error.length() > 0 ) {
|
||||
sessionObject.error += mail.error;
|
||||
mail.error = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
2013-11-23 str4d
|
||||
* susimail: Fix NPE when deleting last message (ticket #414)
|
||||
|
||||
2013-11-19 kytv
|
||||
|
||||
* Translation updates and start of Japanese translation pulled from Transifex
|
||||
|
Reference in New Issue
Block a user