Commit e7cd5d7f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

FsDiscoverer: Don't assume device insertion will succeed

parent 500faa0f
......@@ -347,6 +347,8 @@ bool FsDiscoverer::addFolder( std::shared_ptr<fs::IDirectory> folder,
device = Device::create( m_ml, deviceFs->uuid(),
utils::file::scheme( folder->mrl() ),
deviceFs->isRemovable() );
if ( device == nullptr )
return false;
}
auto f = Folder::create( m_ml, folder->mrl(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment