Commit 34eb6ce9 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
parent 72050f57
......@@ -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();
}
}
......
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