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