do not ignore return value

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2022-10-02 11:31:50 +02:00 committed by Matthieu Gallien
parent 4ddfaa72e6
commit 74f35191e0

View file

@ -371,8 +371,7 @@ void VfsCfApi::requestHydration(const QString &requestId, const QString &path)
// Set in the database that we should download the file
SyncJournalFileRecord record;
journal->getFileRecord(relativePath, &record);
if (!record.isValid()) {
if (!journal->getFileRecord(relativePath, &record) || !record.isValid()) {
qCInfo(lcCfApi) << "Couldn't hydrate, did not find file in db";
emit hydrationRequestFailed(requestId);
return;