Skip to content

Commit e62061a

Browse files
authored
[FIX] UI: remove try-catch form Launcher::getResult(). (#11208)
* remove try-catch block so actual errors become notable again
1 parent 158fb8c commit e62061a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • components/ILIAS/UI/src/Implementation/Component/Launcher

components/ILIAS/UI/src/Implementation/Component/Launcher/Inline.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ public function withRequest(ServerRequestInterface $request): self
145145

146146
public function getResult(): ?Result
147147
{
148-
try {
149-
return $this->modal?->getForm()?->getInputGroup()?->getContent();
150-
} catch (\Throwable) {
148+
if ($this->request === null) {
151149
return null;
152150
}
151+
152+
return $this->modal?->getForm()?->getInputGroup()?->getContent();
153153
}
154154

155155
public function getModal(): ?Modal\Roundtrip

0 commit comments

Comments
 (0)