| Index: components/storage_monitor/media_storage_util.cc
|
| diff --git a/components/storage_monitor/media_storage_util.cc b/components/storage_monitor/media_storage_util.cc
|
| index 20190d427ede380048139d2a5f6b7ad032eb1446..c95f53404c880fb22d607d518832ebc8fc559858 100644
|
| --- a/components/storage_monitor/media_storage_util.cc
|
| +++ b/components/storage_monitor/media_storage_util.cc
|
| @@ -116,7 +116,7 @@ bool MediaStorageUtil::CanCreateFileSystem(const std::string& device_id,
|
| if (type == StorageInfo::MAC_IMAGE_CAPTURE)
|
| return true;
|
|
|
| - return path.IsAbsolute() && !path.ReferencesParent();
|
| + return !path.empty() && path.IsAbsolute() && !path.ReferencesParent();
|
| }
|
|
|
| // static
|
|
|