From 113a1448397584c09bbbb903b825240420f064c0 Mon Sep 17 00:00:00 2001 From: m0dB Date: Tue, 2 Jan 2024 03:04:00 +0100 Subject: [PATCH] avoid nullptr access --- src/widget/openglwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/openglwindow.cpp b/src/widget/openglwindow.cpp index 70c5cef5e7c7..76371afb7b65 100644 --- a/src/widget/openglwindow.cpp +++ b/src/widget/openglwindow.cpp @@ -55,7 +55,7 @@ bool OpenGLWindow::event(QEvent* pEv) { // this recursion. const auto t = pEv->type(); - if (t == QEvent::Expose && m_pWidget->useExplicitPaintAndSwap()) { + if (t == QEvent::Expose && m_pWidget && m_pWidget->useExplicitPaintAndSwap()) { // Avoid updates for windows that use explicit swaps return false; // clazy:exclude=base-class-event }