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

Folder: Clarify assertion

parent 56a614b1
Pipeline #2761 passed with stages
in 12 minutes and 32 seconds
......@@ -318,7 +318,12 @@ const std::string& Folder::mrl() const
}
auto fsFactory = m_ml->fsFactoryForMrl( m_device->scheme() );
assert( fsFactory != nullptr );
if ( fsFactory == nullptr )
{
assert( !"Failed to find a FileSystemFactory for a known folder" );
m_fullPath = "";
return m_fullPath;
}
auto deviceFs = fsFactory->createDevice( m_device->uuid() );
// In case the device lister hasn't been updated accordingly, we might think
// a device still is present while it's not.
......
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