From 9f6db26dccc98abf2d500ec02eddf2e96d6471b1 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 30 Aug 2017 10:42:33 +0100 Subject: [PATCH] Guard Applet->property("graphicsitem") in corona tests --- shell/coronatesthelper.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell/coronatesthelper.cpp b/shell/coronatesthelper.cpp index c8f9a76a1..e3ce9dc18 100644 --- a/shell/coronatesthelper.cpp +++ b/shell/coronatesthelper.cpp @@ -47,6 +47,11 @@ void CoronaTestHelper::processApplet(Plasma::Applet* applet) qGuiApp->exit(1); return; } + if (!obj) { + qCWarning(PLASMASHELL) << "cannot get AppletQuickItem for applet"; + qGuiApp->exit(1); + return; + } auto testObject = obj->testItem(); if (!testObject) {