From b4b822e1ddb5a1becb324e017673842e39957641 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 13 Apr 2010 19:16:20 +0000 Subject: [PATCH] chack for view, crash-- svn path=/trunk/KDE/kdelibs/; revision=1114503 --- applet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applet.cpp b/applet.cpp index 2b05b8b0a..1fe8618a6 100644 --- a/applet.cpp +++ b/applet.cpp @@ -1377,7 +1377,7 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW // a Containment style option based on the one we get // the view must be assigned only if its containment is actually our own Containment::StyleOption coption(*option); - if (v->containment() == containment()) { + if (v && v->containment() == containment()) { coption.view = v; } paintInterface(painter, &coption, contentsRect);