diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2013-09-27 18:08:07 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-30 09:12:00 +0200 |
commit | c47db87522f4daa8ef28cecd1ce889859192a545 (patch) | |
tree | 44c32baa29b800dd189c79f2925cee8bdc91b734 /tests | |
parent | b480f08440953d074bb52f83a7aa0a957e71b498 (diff) |
QWinJumpList::addCategory(): don't crash when passing a null pointer
Change-Id: Icd2e29d73bd5f64c9ce68219a23c80b4fe3aa3d1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qwinjumplist/tst_qwinjumplist.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qwinjumplist/tst_qwinjumplist.cpp b/tests/auto/qwinjumplist/tst_qwinjumplist.cpp index 1d621c6..58dcfa1 100644 --- a/tests/auto/qwinjumplist/tst_qwinjumplist.cpp +++ b/tests/auto/qwinjumplist/tst_qwinjumplist.cpp @@ -198,6 +198,8 @@ void tst_QWinJumpList::testCategories() QWinJumpList jumplist; QVERIFY(jumplist.categories().isEmpty()); + jumplist.addCategory(0); + QWinJumpListCategory *cat1 = new QWinJumpListCategory(QStringLiteral("tmp")); QCOMPARE(cat1->title(), QStringLiteral("tmp")); cat1->setTitle(QStringLiteral("cat1")); |