workspacesView: Handle null return value

We are not going to process key events while updating views,
but coverity complains (CID 351269)...

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1950>
This commit is contained in:
Florian Müllner 2021-08-13 02:52:09 +02:00
parent 5b3036a6bf
commit 46b0d3f6cc

View File

@ -1019,7 +1019,7 @@ class WorkspacesDisplay extends St.Widget {
} }
vfunc_navigate_focus(from, direction) { vfunc_navigate_focus(from, direction) {
return this._getPrimaryView().navigate_focus(from, direction, false); return this._getPrimaryView()?.navigate_focus(from, direction, false);
} }
setPrimaryWorkspaceVisible(visible) { setPrimaryWorkspaceVisible(visible) {