From c186e618e5ae8b7ac8dfe42aaad0a8080417767b Mon Sep 17 00:00:00 2001 From: abe33 Date: Thu, 19 Feb 2015 00:51:29 +0100 Subject: [PATCH] :bug: Fix error raised when opening Atom with no buffer opened Fixes #276 --- lib/main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ->