Skip to content

Commit

Permalink
Guard against service usage after package is disabled in the same Ato…
Browse files Browse the repository at this point in the history
…m session

Fixes #605
  • Loading branch information
mehcode authored Jul 25, 2017
1 parent 45be016 commit 2f787bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ class Main {
*/
minimapForEditor (textEditor) {
if (!textEditor) { return }
if (!this.editorsMinimaps) { return }

let minimap = this.editorsMinimaps.get(textEditor)

Expand Down

0 comments on commit 2f787bc

Please sign in to comment.