Commit 33a57a90 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Task: Don't try to fetch a null file

parent f514f592
......@@ -146,7 +146,8 @@ bool Task::restoreLinkedEntities()
// First of all, we need to know if the file has been created already
// ie. have we run the MetadataParser service, at least partially
file = File::fetch( m_ml, m_fileId );
if ( m_fileId != 0 )
file = File::fetch( m_ml, m_fileId );
// We might re-create tasks without mrl to ease the handling of files on
// external storage.
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