diff --git a/src/app/conversationlistmodel.cpp b/src/app/conversationlistmodel.cpp
index 5ee54f9d5a1f0ec2359edcb16e1f585bf82ebf17..0549cd2b7bf505f4be3444cdeccd27eb4ba5713a 100644
--- a/src/app/conversationlistmodel.cpp
+++ b/src/app/conversationlistmodel.cpp
@@ -143,7 +143,7 @@ ConversationListProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex& s
         }
     } else {
         Q_FOREACH (const auto& filter, toFilter)
-            if (rx.match(filter).hasMatch()) {
+            if (rx.isValid() && rx.match(filter).hasMatch()) {
                 match = true;
                 break;
             }