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

medialibrary: Don't fail silently

parent ad2b5c64
......@@ -203,7 +203,10 @@ bool MediaLibrary::initialize( const std::string& dbPath, const std::string& thu
{
m_deviceLister = factory::createDeviceLister();
if ( m_deviceLister == nullptr )
{
LOG_ERROR( "No available IDeviceLister was found." );
return false;
}
}
if ( m_fsFactory == nullptr )
m_fsFactory.reset( new factory::FileSystemFactory( m_deviceLister ) );
......
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