Skip to content

Commit cbe244d

Browse files
authored
Merge pull request #6507 from LibreSign/fix/return-error-when-node-was-deleted
fix: return error when node was deleted
2 parents a8256cf + 7fe0a51 commit cbe244d

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)