Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / components / storage_monitor / media_storage_util.cc
index 20190d4..c95f534 100644 (file)
@@ -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