Skip to content

Commit 43ad72b

Browse files
authored
Merge pull request #6512 from LibreSign/backport/6507/stable32
[stable32] fix: return error when node was deleted
2 parents 9376602 + 926d9a4 commit 43ad72b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/Service/AccountService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ public function getPdfByUuid(string $uuid): File {
327327
} else {
328328
$nodeId = $fileData->getNodeId();
329329
}
330+
if ($nodeId === null) {
331+
throw new DoesNotExistException('Not found');
332+
}
330333
$file = $this->root->getUserFolder($fileData->getUserId())->getFirstNodeById($nodeId);
331334
if (!$file instanceof File) {
332335
throw new DoesNotExistException('Not found');

0 commit comments

Comments
 (0)