crash--
check if the corona package is valid
This commit is contained in:
parent
0417906b60
commit
26c5d923fb
@ -686,6 +686,11 @@ void ScriptEngine::exception(const QScriptValue &value)
|
||||
|
||||
QStringList ScriptEngine::pendingUpdateScripts(Plasma::Corona *corona)
|
||||
{
|
||||
if (!corona->package().metadata().isValid()) {
|
||||
qWarning() << "Warning: corona package invalid";
|
||||
return QStringList();
|
||||
}
|
||||
|
||||
const QString appName = corona->package().metadata().pluginName();
|
||||
QStringList scripts;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user