Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit bcb46af

Browse files
authored
Merge pull request #359 from atom/failed-to-load-package
Fixes unable to load package
2 parents 6a22ecc + 6aacd3a commit bcb46af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/spell-check-task.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ module.exports = SpellCheckTask = (function () {
9696

9797
static startNextJob() {
9898
const activeEditor = atom.workspace.getActiveTextEditor();
99+
if (!activeEditor) return;
100+
99101
const activeEditorId = activeEditor.id;
100102
const job =
101103
this.jobs.find((j) => j.editorId === activeEditorId) ||

0 commit comments

Comments
 (0)