secure closeView NULL pointer access

BUG: 293654
This commit is contained in:
Thomas Lübking 2012-02-08 19:17:58 +01:00
parent 6f3b9fae2a
commit 7d17a29826

View file

@ -1803,7 +1803,8 @@ void PresentWindowsEffect::setHighlightedWindow(EffectWindow *w)
if (w == m_highlightedWindow || (w != NULL && !m_motionManager.isManaging(w)))
return;
m_closeView->hide();
if (m_closeView)
m_closeView->hide();
if (m_highlightedWindow) {
effects->setElevatedWindow(m_highlightedWindow, false);
m_highlightedWindow->addRepaintFull(); // Trigger the first repaint