diff --git a/lib/Service/RequestSignatureService.php b/lib/Service/RequestSignatureService.php index 781529054..da0cb5aa8 100644 --- a/lib/Service/RequestSignatureService.php +++ b/lib/Service/RequestSignatureService.php @@ -210,6 +210,9 @@ private function associateToSigners(array $data, int $fileId): array { private function associateToSigner(array $identifyMethods, string $displayName, string $description, bool $notify, int $fileId): SignRequestEntity { $identifyMethodsIncances = $this->identifyMethod->getByUserData($identifyMethods); + if (empty($identifyMethodsIncances)) { + throw new \Exception($this->l10n->t('Invalid identification method')); + } $signRequest = $this->getSignRequestByIdentifyMethod( current($identifyMethodsIncances), $fileId