Don't crash if the fwupd error is null

Authored by leinir on Mar 7 2019, 9:38 AM.

Description

Don't crash if the fwupd error is null

I got a difficult-to-reproduce crash, which pointed at the fact that
this error can, at times, be null. Without the validity check this
patch introduces, we then attempted to deref that null pointer, and
crashed.

Differential Revision: https://phabricator.kde.org/D19561

Details

Committed
leinirMar 7 2019, 9:38 AM
Differential Revision
D19561: Don't crash if the fwupd error is null
Parents
R134:2b7e28d372c2: flatpak: Fix look-up of updates on flatpak
Branches
Unknown
Tags
Unknown