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

Commit

Permalink
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>
  • Loading branch information
petetnt committed Jun 28, 2017
1 parent 57f778f commit d08d495
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down Expand Up @@ -549,3 +551,4 @@ define(function (require, exports, module) {

exports.init = init;
});

0 comments on commit d08d495

Please sign in to comment.