Commit 82806b2a authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

kns: Make KNSReview aware of its possible lack of AtticaProvider

Now it won't crash anymore.

BUG: 457145
parent 444b9e07
Pipeline #209360 passed with stage
in 1 minute and 9 seconds
......@@ -194,6 +194,9 @@ Attica::Provider KNSReviews::provider() const
#if KNEWSTUFFCORE_VERSION < QT_VERSION_CHECK(5, 92, 0)
return s_shared->atticaManager.providerFor(m_providerUrl);
#else
if (m_backend->engine()->atticaProviders().isEmpty()) {
return {};
}
return *m_backend->engine()->atticaProviders().constFirst();
#endif
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment