Commit b3fd4f2f authored by David Redondo's avatar David Redondo 🏎
Browse files

Guard against null configloader in destructor

We do not necessarily have a config loader (invalid id or when the face does
not have any config options).
BUG:433431
FIXED-IN:5.21.1


(cherry picked from commit 34eb6ce9)
parent 54babff8
......@@ -392,7 +392,7 @@ SensorFaceController::~SensorFaceController()
// destruction.
d->appearanceGroup.markAsClean();
d->colorsGroup.markAsClean();
if (d->faceConfigLoader->isSaveNeeded()) {
if (d->faceConfigLoader && d->faceConfigLoader->isSaveNeeded()) {
d->faceConfigLoader->load();
}
}
......
Markdown is supported
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