Skip to content

Commit

Permalink
fix: prevent to access null value
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Apr 10, 2024
1 parent 6388b17 commit 772fc21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/FileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ private function getSigners(): array {
}
}
}
if ($signatureToShow['me']) {
if ($signatureToShow['me'] && !is_null($this->signRequest)) {
$signatureToShow['signatureMethods'] = $this->identifyMethodService->getSignMethodsOfIdentifiedFactors($this->signRequest->getId());
}
$signatureToShow['identifyMethods'] = array_reduce($signatureToShow['identifyMethods'], function ($carry, $list) {
Expand Down

0 comments on commit 772fc21

Please sign in to comment.