diff --git a/folderstorage.cpp b/folderstorage.cpp index 4b2e8af89..110014cf4 100644 --- a/folderstorage.cpp +++ b/folderstorage.cpp @@ -480,7 +480,7 @@ KMMessage* FolderStorage::getMsg(int idx) QString mbSubject = mb->subject(); msg = readMsg(idx); // sanity check - if (mCompactable && (!msg || (msg->subject().isEmpty() != mbSubject.isEmpty()))) { + if (mCompactable && (msg->subject().isEmpty() != mbSubject.isEmpty())) { kDebug(5006) << "Error: " << location() << " Index file is inconsistent with folder file. This should never happen." << endl; mCompactable = false; // Don't compact