diff --git a/private/desktoptoolbox.cpp b/private/desktoptoolbox.cpp index f71f30276..0a01f0f63 100644 --- a/private/desktoptoolbox.cpp +++ b/private/desktoptoolbox.cpp @@ -540,6 +540,10 @@ void DesktopToolBox::showToolBox() void DesktopToolBox::addTool(QAction *action) { + if (!action) { + return; + } + InternalToolBox::addTool(action); Plasma::IconWidget *tool = new Plasma::IconWidget(toolParent());