aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Pushkar Singh <pushkar@hothouselabs.com>2013-05-26 21:54:43 -0700
committerGravatar Pushkar Singh <pushkar@hothouselabs.com>2013-05-26 21:54:43 -0700
commit4669aca9ec6fb10a1f8b6365e4fadb69b2cbe0ca (patch)
tree3338426c976aeb5d532b04df17e2cd6974b67559 /src
parente97bb539f00e1dd4b8c94483ce61c1c77a551725 (diff)
Added MCAssert for (mCurrentFolder != NULL)
Diffstat (limited to 'src')
-rw-r--r--src/core/imap/MCIMAPSession.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/imap/MCIMAPSession.cc b/src/core/imap/MCIMAPSession.cc
index 88e50aa3..b078391d 100644
--- a/src/core/imap/MCIMAPSession.cc
+++ b/src/core/imap/MCIMAPSession.cc
@@ -760,7 +760,8 @@ void IMAPSession::selectIfNeeded(String * folder, ErrorCode * pError)
return;
if (mState == STATE_SELECTED) {
- if (mCurrentFolder != NULL && mCurrentFolder->caseInsensitiveCompare(folder) != 0) {
+ MCAssert(mCurrentFolder != NULL);
+ if (mCurrentFolder->caseInsensitiveCompare(folder) != 0) {
select(folder, pError);
}
}