Chromium Code Reviews| Index: ui/file_manager/file_manager/foreground/js/file_manager.js |
| diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js |
| index a5de1582b9979887c41fe4d562778a8c4616e294..56320d4209c82244bebe0390c358f38cf9b1238f 100644 |
| --- a/ui/file_manager/file_manager/foreground/js/file_manager.js |
| +++ b/ui/file_manager/file_manager/foreground/js/file_manager.js |
| @@ -807,6 +807,10 @@ FileManager.prototype = /** @struct */ { |
| FileManager.prototype.onHistoryChanged_ = function(event) { |
| this.tracker_.send(metrics.ImportEvents.HISTORY_CHANGED); |
| + if (!event.entry) { |
|
mtomasz
2015/02/25 00:40:17
nit: Can we add a comment when can it happen that
Steve McKay
2015/02/25 01:51:56
Actually it should never be null. I might have add
|
| + return; |
| + } |
| + |
| // Ignore any entry that isn't an immediate child of the |
| // current directory. |
| util.isChildEntry(event.entry, this.getCurrentDirectoryEntry()) |