Check if signature is empty.

Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
Camila Ayres 2024-07-16 14:56:20 +02:00 committed by Matthieu Gallien
parent e65e581933
commit 4828dde8e9

View file

@ -181,6 +181,11 @@ void FolderMetadata::setupExistingMetadata(const QByteArray &metadata)
}
}
if (_initialSignature.isEmpty()) {
qCDebug(lcCseMetadata()) << "Signature is empty";
return;
}
if (!parseFileDropPart(metaDataDoc)) {
qCDebug(lcCseMetadata()) << "Could not parse filedrop part";
return;