diff --git a/src/plasma/containment.cpp b/src/plasma/containment.cpp index ec2d5c225..803887d20 100644 --- a/src/plasma/containment.cpp +++ b/src/plasma/containment.cpp @@ -317,7 +317,7 @@ Corona *Containment::corona() const //case in which this containment is child of an applet, hello systray :) } else { Plasma::Applet *parentApplet = qobject_cast(parent()); - if (parentApplet) { + if (parentApplet && parentApplet->containment()) { return parentApplet->containment()->corona(); } }