diff --git a/app/dockview.cpp b/app/dockview.cpp index ccf64e433..ece5157a9 100644 --- a/app/dockview.cpp +++ b/app/dockview.cpp @@ -835,6 +835,10 @@ void DockView::themeChanged() //! check if the tasks plasmoid exist in the dock bool DockView::tasksPresent() { + if (!this->containment()) { + return false; + } + foreach (Plasma::Applet *applet, this->containment()->applets()) { KPluginMetaData meta = applet->kPackage().metadata();