Skip to content

Commit d9cec6a

Browse files
committed
fix: prevent error when is an envelope
Signed-off-by: Vitor Mattos <[email protected]>
1 parent 64a12ff commit d9cec6a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/Service/FileService.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,11 @@ public function isLibresignFile(int $nodeId): bool {
298298
}
299299

300300
private function loadFileMetadata(): void {
301-
if ($this->file->getNodeType() !== 'file' || !$content = $this->getFileContent()) {
301+
if (
302+
!$this->file
303+
|| $this->file->getNodeType() !== 'file'
304+
|| !$content = $this->getFileContent()
305+
) {
302306
return;
303307
}
304308
$pdfParserService = $this->pdfParserService->setFile($content);

0 commit comments

Comments
 (0)