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 (#13492)

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>
  • Loading branch information
petetnt authored and swmitra committed Jun 28, 2017
1 parent 57f778f commit 2c943cd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,9 @@ define(function (require, exports, module) {
_reinstateMarkers(editor, jumpForwardStack);
});
FileSystem.on("change", function (event, entry) {
_handleExternalChange(event, {file: entry});
if (entry) {
_handleExternalChange(event, {file: entry});
}
});
Document.on("_documentRefreshed", function (event, doc) {
_handleExternalChange(event, {file: doc.file});
Expand Down

0 comments on commit 2c943cd

Please sign in to comment.