diff --git a/js/ui/layout.js b/js/ui/layout.js index 6f810395d..dcffe479c 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -557,6 +557,8 @@ var LayoutManager = new Lang.Class({ }, get focusMonitor() { + if (this.focusIndex < 0) + return null; return this.monitors[this.focusIndex]; },