We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9376602 + 926d9a4 commit 43ad72bCopy full SHA for 43ad72b
1 file changed
lib/Service/AccountService.php
@@ -327,6 +327,9 @@ public function getPdfByUuid(string $uuid): File {
327
} else {
328
$nodeId = $fileData->getNodeId();
329
}
330
+ if ($nodeId === null) {
331
+ throw new DoesNotExistException('Not found');
332
+ }
333
$file = $this->root->getUserFolder($fileData->getUserId())->getFirstNodeById($nodeId);
334
if (!$file instanceof File) {
335
throw new DoesNotExistException('Not found');
0 commit comments