diff --git a/src/scriptengines/qml/plasmoid/appletinterface.cpp b/src/scriptengines/qml/plasmoid/appletinterface.cpp index 258b048ff..e5f7985b9 100644 --- a/src/scriptengines/qml/plasmoid/appletinterface.cpp +++ b/src/scriptengines/qml/plasmoid/appletinterface.cpp @@ -462,6 +462,9 @@ int AppletInterface::screen() const QRect AppletInterface::screenGeometry() const { + if (!applet() || !applet()->containment()) { + return QRect(); + } return applet()->containment()->corona()->screenGeometry(applet()->containment()->screen()); }