aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xsrc/core/imap/MCIMAPSession.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/imap/MCIMAPSession.cpp b/src/core/imap/MCIMAPSession.cpp
index dcb82c63..ba9eaf25 100755
--- a/src/core/imap/MCIMAPSession.cpp
+++ b/src/core/imap/MCIMAPSession.cpp
@@ -3798,7 +3798,8 @@ String * IMAPSession::htmlRendering(IMAPMessage * message, String * folder, Erro
}
String * IMAPSession::htmlBodyRendering(IMAPMessage * message, String * folder, ErrorCode * pError)
-{
+{
+ MCAssert(folder != NULL);
HTMLRendererIMAPDataCallback * dataCallback = new HTMLRendererIMAPDataCallback(this, message->uid());
HTMLBodyRendererTemplateCallback * htmlCallback = new HTMLBodyRendererTemplateCallback();
@@ -3832,6 +3833,7 @@ String * IMAPSession::plainTextRendering(IMAPMessage * message, String * folder,
String * IMAPSession::plainTextBodyRendering(IMAPMessage * message, String * folder, bool stripWhitespace, ErrorCode * pError)
{
+ MCAssert(folder != NULL);
String * htmlBodyString = htmlBodyRendering(message, folder, pError);
if (* pError != ErrorNone) {