Skip to content

Commit

Permalink
Fix crash.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <blackslayer4@gmail.com>
  • Loading branch information
allexzander committed Aug 23, 2023
1 parent 07f48f0 commit eb59732
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libsync/basepropagateremotedeleteencrypted.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ void BasePropagateRemoteDeleteEncrypted::deleteRemoteItem(const QString &filenam

void BasePropagateRemoteDeleteEncrypted::unlockFolder(bool success)
{
if (!_encryptedFolderMetadataHandler->isFolderLocked()) {
if (!_encryptedFolderMetadataHandler) {
qCWarning(ABSTRACT_PROPAGATE_REMOVE_ENCRYPTED) << "Null _encryptedFolderMetadataHandler";
}
if (!_encryptedFolderMetadataHandler || !_encryptedFolderMetadataHandler->isFolderLocked()) {
emit finished(true);
return;
}
Expand Down

0 comments on commit eb59732

Please sign in to comment.