diff --git a/dataenginemanager.cpp b/dataenginemanager.cpp index fd44bd0f8..e200d6e27 100644 --- a/dataenginemanager.cpp +++ b/dataenginemanager.cpp @@ -120,12 +120,12 @@ Plasma::DataEngine* DataEngineManager::loadDataEngine(const QString& name) KService::List offers = KServiceTypeTrader::self()->query("Plasma/DataEngine", constraint); QString error; - QVariantList allArgs; - allArgs << offers.first()->storageId(); if (offers.isEmpty()) { kDebug() << "offers are empty for " << name << " with constraint " << constraint; } else { + QVariantList allArgs; + allArgs << offers.first()->storageId(); QString language = offers.first()->property("X-Plasma-Language").toString(); if (language.isEmpty()) { engine = offers.first()->createInstance(0, allArgs, &error);