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

fwupd: Make sure we don't crash trying to print an error

BUG: 455132
parent f7594fa8
Pipeline #209413 passed with stage
in 1 minute
......@@ -134,7 +134,7 @@ void FwupdSourcesBackend::proceed()
if (fwupd_client_modify_remote(backend->client, fwupd_remote_get_id(remote), "Enabled", "true", nullptr, &error))
m_currentItem->setData(Qt::Checked, Qt::CheckStateRole);
else
qWarning() << "could not enable remote" << remote << error->message;
qWarning() << "could not enable remote" << remote << (error ? error->message : "");
m_currentItem = nullptr;
}
......
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