From 46b0d3f6cc4a0a74cb6362c9cf27315900d2e40c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 13 Aug 2021 02:52:09 +0200 Subject: [PATCH] workspacesView: Handle null return value We are not going to process key events while updating views, but coverity complains (CID 351269)... Part-of: --- js/ui/workspacesView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 1d03e3131..3761881d0 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -1019,7 +1019,7 @@ class WorkspacesDisplay extends St.Widget { } vfunc_navigate_focus(from, direction) { - return this._getPrimaryView().navigate_focus(from, direction, false); + return this._getPrimaryView()?.navigate_focus(from, direction, false); } setPrimaryWorkspaceVisible(visible) {