Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
fix lack of null check on currentActiveFile (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeSlev authored Aug 21, 2019
1 parent cc1b0db commit e4e73f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ const updateCurrentFileIfPython = async (
setPathAndSendMessage(currentPanel,
getActivePythonFile() || "");
}
if (utils.getActiveEditorFromPath(currentTextDocument.fileName) === undefined) {
if (currentTextDocument && utils.getActiveEditorFromPath(currentTextDocument.fileName) === undefined) {
await vscode.window.showTextDocument(currentTextDocument, vscode.ViewColumn.One);
}
};
Expand Down

0 comments on commit e4e73f2

Please sign in to comment.