You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/kde-plasma/plasma-workspace/files/plasma-workspace-5.8.3-krun...

24 lines
969 B

commit 238ec3ee671bcf6716348122bebefb20c25d1101
Author: David Edmundson <kde@davidedmundson.co.uk>
Date: Thu, 17 Nov 2016 10:53:48 +0000
[Windowed Widgets Runner] Don't access invalid KPluginInfo
BUG: 372017
FIXED-IN: 5.8.4
diff --git a/runners/windowedwidgets/windowedwidgetsrunner.cpp b/runners/windowedwidgets/windowedwidgetsrunner.cpp
index 5ccbd27..f86159a 100644
--- a/runners/windowedwidgets/windowedwidgetsrunner.cpp
+++ b/runners/windowedwidgets/windowedwidgetsrunner.cpp
@@ -60,6 +60,9 @@ void WindowedWidgetsRunner::match(Plasma::RunnerContext &context)
foreach (const KPluginInfo &info, Plasma::PluginLoader::self()->listAppletInfo(QString())) {
KService::Ptr service = info.service();
+ if (!service || !service->isValid()) {
+ continue;
+ }
if (((service->name().contains(term, Qt::CaseInsensitive) ||
service->genericName().contains(term, Qt::CaseInsensitive) ||