Skip to content

Commit deb8053

Browse files
matheuszychthibsy
authored andcommitted
[FIX] UI: remove try-catch form Launcher::getResult(). (#11208)
* remove try-catch block so actual errors become notable again
1 parent 65f4e37 commit deb8053

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
@@ -146,11 +146,11 @@ public function withRequest(ServerRequestInterface $request): self
146146

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

156156
public function getModal(): ?I\Modal\Roundtrip

0 commit comments

Comments
 (0)