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

Unified Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 9705058: Fix exception on loading File Manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/file_manager.js
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js
index e365a1bbd120fddb4fae1e7de6fc5b8a4d34160d..4729f386d0a9520ac98c5e0db6a120be4f6c435a 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -1152,8 +1152,8 @@ FileManager.prototype = {
var entry =
this.getRootEntry_(this.rootsList_.selectionModel.selectedIndex);
- return DirectoryModel.getRootType(entry.fullPath) ==
- DirectoryModel.RootType.REMOVABLE;
+ return entry && DirectoryModel.getRootType(entry.fullPath) ==
+ DirectoryModel.RootType.REMOVABLE;
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698