diff --git a/effects/presentwindows.cpp b/effects/presentwindows.cpp index 515895863c..734c75e7b9 100644 --- a/effects/presentwindows.cpp +++ b/effects/presentwindows.cpp @@ -151,6 +151,8 @@ void PresentWindowsEffect::postPaintScreen() // Update windows that are changing brightness or opacity foreach( EffectWindow *w, m_windowData.keys() ) { + if( !w ) + continue; if( m_windowData[w].opacity > 0.0 && m_windowData[w].opacity < 1.0 ) w->addRepaintFull(); if( m_windowData[w].highlight > 0.0 && m_windowData[w].highlight < 1.0 )