From 8bc01b8494033919b0c9ed1aa35a94660ea7f46d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 7 Jul 2016 09:15:46 +0200 Subject: Avoid an endless stream of errormessages in modelinteractivity test --- common/mailpreprocessor.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/mailpreprocessor.cpp') diff --git a/common/mailpreprocessor.cpp b/common/mailpreprocessor.cpp index 005a93e..c38035e 100644 --- a/common/mailpreprocessor.cpp +++ b/common/mailpreprocessor.cpp @@ -37,6 +37,10 @@ QString MailPropertyExtractor::getFilePathFromMimeMessagePath(const QString &s) void MailPropertyExtractor::updatedIndexedProperties(Sink::ApplicationDomain::Mail &mail) { const auto mimeMessagePath = getFilePathFromMimeMessagePath(mail.getMimeMessagePath()); + if (mimeMessagePath.isNull()) { + Trace() << "No mime message"; + return; + } Trace() << "Updating indexed properties " << mimeMessagePath; QFile f(mimeMessagePath); if (!f.open(QIODevice::ReadOnly)) { -- cgit v1.2.3