guard against invalid applets
an applet can be present but being one that failed to load therefore with an invalid kplugininfo, which can cause asserts around BUG:364281
This commit is contained in:
parent
6f5816fc57
commit
746f57713c
@ -85,6 +85,10 @@ void ConfigViewPrivate::init()
|
||||
qWarning() << "Null applet passed to constructor";
|
||||
return;
|
||||
}
|
||||
if (!applet.data()->pluginInfo().isValid()) {
|
||||
qWarning() << "Invalid applet passed to constructor";
|
||||
return;
|
||||
}
|
||||
|
||||
applet.data()->setUserConfiguring(true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user