Commit 378e4edf authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Folder: Fix a crash when adding a non existing folder to the ignore list

parent d072f148
......@@ -107,6 +107,8 @@ std::shared_ptr<Folder> Folder::create( DBConnection connection, const std::stri
bool Folder::blacklist( DBConnection connection, const std::string& fullPath )
{
auto folderFs = FsFactory->createDirectory( fullPath );
if ( folderFs == nullptr )
return false;
auto deviceFs = folderFs->device();
auto device = Device::fromUuid( connection, deviceFs->uuid() );
if ( device == nullptr )
......
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