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

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NavigationProvider throwing errors when doc.file is missing. Fixes
Browse files Browse the repository at this point in the history
…#13491

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>
petetnt committed Jun 28, 2017
1 parent 57f778f commit efc3554
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -481,8 +481,10 @@ define(function (require, exports, module) {
*/
function _handleExternalChange(evt, doc) {
if (doc) {
_removeBackwardFramesForFile(doc.file);
_removeForwardFramesForFile(doc.file);
if (doc.file) {
_removeBackwardFramesForFile(doc.file);
_removeForwardFramesForFile(doc.file);
}
_validateNavigationCmds();
}
}
@@ -549,3 +551,4 @@ define(function (require, exports, module) {

exports.init = init;
});

0 comments on commit efc3554

Please sign in to comment.