From e110b126f7c21848510f6ee7843c512df46f58f3 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Mon, 29 Jul 2019 23:28:12 +0300 Subject: [PATCH] autotests: Fix zero page access Fix zero page access for real this time. --- workspace.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index a2ffafcd60..9e41caa874 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -1778,8 +1778,9 @@ void Workspace::setWasUserInteraction() void Workspace::updateTabbox() { #ifdef KWIN_BUILD_TABBOX - if (TabBox::TabBox::self()->isDisplayed()) { - TabBox::TabBox::self()->reset(true); + TabBox::TabBox *tabBox = TabBox::TabBox::self(); + if (tabBox && tabBox->isDisplayed()) { + tabBox->reset(true); } #endif }