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 a8256cf + 7fe0a51 commit cbe244dCopy full SHA for cbe244d
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