Verified Commit ff98585e authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

fix: handle when backend fails to load/initialize

Fixes a null pointer dereference in GetConfigOperation when BackendManager
fails to load a valid backend.

Reviewers: #plasma, romangg

Reviewed By: #plasma, romangg

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent b7433574
......@@ -171,6 +171,9 @@ void GetConfigOperation::start()
if (BackendManager::instance()->method() == BackendManager::InProcess) {
auto backend = d->loadBackend();
if (!backend) {
return; // loadBackend() already set error and called emitResult() for us
d->config = backend->config()->clone();
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