Skip to content

Commit 926d9a4

Browse files
fix: return error when node was deleted
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 9376602 commit 926d9a4

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)