summaryrefslogtreecommitdiff
path: root/user/kpeople/dont-crash-test.patch
blob: e133618bee933c17d3beb5798d2a473e2e431401 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/autotests/personsmodeltest.cpp b/autotests/personsmodeltest.cpp
index 3e5b9a5..ee2123b 100644
--- a/autotests/personsmodeltest.cpp
+++ b/autotests/personsmodeltest.cpp
@@ -119,6 +119,7 @@ void PersonsModelTest::gettersTests()
 {
     // Find the index for "kpeople://1" using the QAIModel method
     QModelIndexList indexList = m_model->match(m_model->index(0,0,QModelIndex()), KPeople::PersonsModel::PersonUriRole, QVariant(QStringLiteral("kpeople://1")), 1);
+    QCOMPARE(indexList.isEmpty(), false);
     QModelIndex personIndex = indexList.first();
 
     // Now get the index using our method