Index: ui/file_manager/file_manager/foreground/js/file_table.js |
diff --git a/ui/file_manager/file_manager/foreground/js/file_table.js b/ui/file_manager/file_manager/foreground/js/file_table.js |
index e7d063e7281e471f5d58dbb6e07e444e66a5ee71..9f4bb016670938a892d60e49a634730eafdf2c19 100644 |
--- a/ui/file_manager/file_manager/foreground/js/file_table.js |
+++ b/ui/file_manager/file_manager/foreground/js/file_table.js |
@@ -395,7 +395,7 @@ FileTable.prototype.shouldStartDragSelection_ = function(event) { |
// If the pointed item is already selected, it should not start the drag |
// selection. |
- if (this.lastSelection_.indexOf(itemIndex) !== -1) |
+ if (this.lastSelection_ && this.lastSelection_.indexOf(itemIndex) !== -1) |
return false; |
// If the horizontal value is not hit to column, it should start the drag |