I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 0dde4162 authored by str4d's avatar str4d
Browse files

susimail: Fix NPE when deleting last message (ticket #414)

parent 57144f3e
No related branches found
No related tags found
No related merge requests found
...@@ -1287,10 +1287,15 @@ public class WebMail extends HttpServlet ...@@ -1287,10 +1287,15 @@ public class WebMail extends HttpServlet
if( sessionObject.state == STATE_SHOW ) { if( sessionObject.state == STATE_SHOW ) {
processMessageButtons( sessionObject, request ); processMessageButtons( sessionObject, request );
Mail mail = sessionObject.mailCache.getMail( sessionObject.showUIDL, MailCache.FETCH_ALL ); // If the last message has just been deleted then
if( mail != null && mail.error.length() > 0 ) { // sessionObject.state = STATE_LIST and
sessionObject.error += mail.error; // sessionObject.showUIDL = null
mail.error = ""; 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 = "";
}
} }
} }
......
2013-11-23 str4d
* susimail: Fix NPE when deleting last message (ticket #414)
2013-11-19 kytv 2013-11-19 kytv
* Translation updates and start of Japanese translation pulled from Transifex * Translation updates and start of Japanese translation pulled from Transifex
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment