summaryrefslogtreecommitdiff
path: root/quantum/painter/lvgl/qp_lvgl.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/painter/lvgl/qp_lvgl.c')
-rw-r--r--quantum/painter/lvgl/qp_lvgl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/painter/lvgl/qp_lvgl.c b/quantum/painter/lvgl/qp_lvgl.c
index 6cc0061d73..280aeaf91f 100644
--- a/quantum/painter/lvgl/qp_lvgl.c
+++ b/quantum/painter/lvgl/qp_lvgl.c
@@ -61,7 +61,7 @@ bool qp_lvgl_attach(painter_device_t device) {
qp_lvgl_detach();
painter_driver_t *driver = (painter_driver_t *)device;
- if (!driver->validate_ok) {
+ if (!driver || !driver->validate_ok) {
qp_dprintf("qp_lvgl_attach: fail (validation_ok == false)\n");
qp_lvgl_detach();
return false;