blob: 2d4f7eca0b3267ebe28021b9469cadc2711ce03d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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) ||
|