diff --git a/shell/panelview.cpp b/shell/panelview.cpp index 3fbf44f4e..8e6beb5df 100644 --- a/shell/panelview.cpp +++ b/shell/panelview.cpp @@ -890,6 +890,9 @@ void PanelView::updateStruts() } const QRect otherScreen = corona()->screenGeometry(i); + if (!otherScreen.isValid()) { + continue; + } switch (location()) {