From 741f0d611a13cc1ccec849b22709ddcbee5557cd Mon Sep 17 00:00:00 2001 From: Matheus Zych Date: Fri, 27 Feb 2026 14:11:34 +0100 Subject: [PATCH] Removes try catch from ILIAS\UI\Implementation\Component\Launcher::getResult method --- .../UI/src/Implementation/Component/Launcher/Inline.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ILIAS/UI/src/Implementation/Component/Launcher/Inline.php b/components/ILIAS/UI/src/Implementation/Component/Launcher/Inline.php index 6624b7cccc7c..b8969ab5e480 100755 --- a/components/ILIAS/UI/src/Implementation/Component/Launcher/Inline.php +++ b/components/ILIAS/UI/src/Implementation/Component/Launcher/Inline.php @@ -145,11 +145,11 @@ public function withRequest(ServerRequestInterface $request): self public function getResult(): ?Result { - try { - return $this->modal?->getForm()?->getInputGroup()?->getContent(); - } catch (\Throwable) { + if ($this->request === null) { return null; } + + return $this->modal?->getForm()?->getInputGroup()?->getContent(); } public function getModal(): ?Modal\Roundtrip