Skip to content

Commit

Permalink
avoid nullptr access
Browse files Browse the repository at this point in the history
  • Loading branch information
m0dB authored and m0dB committed Jan 2, 2024
1 parent 9d40a94 commit 113a144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget/openglwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 113a144

Please sign in to comment.