diff --git a/applets/panelspacer/plugin/panelspacer.cpp b/applets/panelspacer/plugin/panelspacer.cpp index 8d7a75b06..49e314b14 100644 --- a/applets/panelspacer/plugin/panelspacer.cpp +++ b/applets/panelspacer/plugin/panelspacer.cpp @@ -122,6 +122,7 @@ PlasmaQuick::AppletQuickItem *PanelSpacer::twinSpacer() const PlasmaQuick::AppletQuickItem *PanelSpacer::containmentGraphicObject() const { + if (!containment()) return nullptr; // Return nothing if there is no containment to prevent a Segmentation Fault return containment()->property("_plasma_graphicObject").value(); }