Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Unified Diff: ui/file_manager/file_manager/foreground/js/main_window_component.js

Issue 964393002: Dispatch change events when file changes have happened on Drive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add null check. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/file_manager/foreground/js/main_window_component.js
diff --git a/ui/file_manager/file_manager/foreground/js/main_window_component.js b/ui/file_manager/file_manager/foreground/js/main_window_component.js
index 754d33630a391b391e10ac5976bebb2ba84520f1..1a3369035dbce8fb22f58b4b7fcfdae17a0c46de 100644
--- a/ui/file_manager/file_manager/foreground/js/main_window_component.js
+++ b/ui/file_manager/file_manager/foreground/js/main_window_component.js
@@ -282,7 +282,7 @@ MainWindowComponent.prototype.onListKeyDown_ = function(event) {
selection.indexes[0]);
// If the item is in renaming process, we don't allow to change
// directory.
- if (!item.hasAttribute('renaming')) {
+ if (item && !item.hasAttribute('renaming')) {
event.preventDefault();
this.directoryModel_.changeDirectoryEntry(selection.entries[0]);
}

Powered by Google App Engine
This is Rietveld 408576698