summaryrefslogtreecommitdiff
path: root/quantum/painter/lvgl
diff options
context:
space:
mode:
authorPablo Martínez <58857054+elpekenin@users.noreply.github.com>2023-07-07 16:51:19 +0200
committerGitHub <noreply@github.com>2023-07-08 00:51:19 +1000
commitd13925be9abe02438f3c74ffcbc65ce74dde3de8 (patch)
tree95589fc51b49cb050a28dfc2970c60ffeaef1ce1 /quantum/painter/lvgl
parent9b3ac793bca14dc5efd424ba28324937b7bed40d (diff)
[Bugfix] Check `NULL` pointers on QP (#20481)
Diffstat (limited to 'quantum/painter/lvgl')
-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;