Commit 5bf1db72 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

kns: Make KNSReview aware of its possible lack of AtticaProvider

Now it won't crash anymore.

BUG: 457145

(cherry picked from commit 82806b2a)
parent 27fc70cd
Pipeline #209362 passed with stage
in 1 minute and 9 seconds
......@@ -181,6 +181,9 @@ Attica::Provider KNSReviews::provider() const
return s_shared->atticaManager.providerFor(m_providerUrl);
if (m_backend->engine()->atticaProviders().isEmpty()) {
return {};
return *m_backend->engine()->atticaProviders().constFirst();
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