aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vmime/net/imap/IMAPUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vmime/net/imap/IMAPUtils.cpp b/src/vmime/net/imap/IMAPUtils.cpp
index 0bb086ff..869b61aa 100644
--- a/src/vmime/net/imap/IMAPUtils.cpp
+++ b/src/vmime/net/imap/IMAPUtils.cpp
@@ -602,7 +602,7 @@ shared_ptr <IMAPCommand> IMAPUtils::buildFetchCommand
items.push_back("UID");
// Also fetch MODSEQ if CONDSTORE is supported
- if (cnt->hasCapability("CONDSTORE") && !cnt->isMODSEQDisabled())
+ if (cnt && cnt->hasCapability("CONDSTORE") && !cnt->isMODSEQDisabled())
items.push_back("MODSEQ");
}