Avoid crash if kicker plugin is used outside plasma context

Authored by davidedmundson on Aug 15 2019, 10:38 PM.

Description

Avoid crash if kicker plugin is used outside plasma context

Summary:
Code currently gets the applet interface object passed in explicitly,
from this it gets the configuration via the metaobject system

We always guard the appletConfig not being available, but never the
appletInterface, resulting in crashes if used from qmlscene or any
potential tests.

Test Plan: Used from qmlscene

Reviewers: Plasma, apol, hein

Reviewed By: Plasma, apol, hein

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D22818

Details

Committed
davidedmundsonAug 15 2019, 10:38 PM
Reviewer
Plasma
Differential Revision
D22818: Avoid crash if kicker plugin is used outside plasma context
Parents
R119:352f6e835359: Clean up old bug workaround
Branches
Unknown
Tags
Unknown