diff --git a/lib/main.coffee b/lib/main.coffee index 1cc82594..5384c453 100644 --- a/lib/main.coffee +++ b/lib/main.coffee @@ -270,7 +270,7 @@ class Main # Returns a `Disposable`. observeMinimaps: (iterator) -> return unless iterator? - @editorsMinimaps.forEach (minimap) -> iterator(minimap) + @editorsMinimaps?.forEach (minimap) -> iterator(minimap) createdCallback = (minimap) -> iterator(minimap) disposable = @onDidCreateMinimap(createdCallback) disposable.off = ->