| Index: ui/file_manager/file_manager/foreground/js/naming_controller.js
|
| diff --git a/ui/file_manager/file_manager/foreground/js/naming_controller.js b/ui/file_manager/file_manager/foreground/js/naming_controller.js
|
| index 8fdda9bee095be3f2e20aa986b4d4f87efc0b503..50a6ff3c70724a431ee78f538ac578d33bbcac35 100644
|
| --- a/ui/file_manager/file_manager/foreground/js/naming_controller.js
|
| +++ b/ui/file_manager/file_manager/foreground/js/naming_controller.js
|
| @@ -103,7 +103,7 @@ NamingController.prototype.validateFileNameForSaving = function(filename) {
|
| if (!isValid)
|
| return Promise.reject('Invalid filename.');
|
|
|
| - if (util.isFakeEntry(directory)) {
|
| + if (directory && util.isFakeEntry(directory)) {
|
| // Can't save a file into a fake directory.
|
| return Promise.reject('Cannot save into fake entry.');
|
| }
|
|
|