[BUGFIX] Catch UnknownLinkHandlerException in InputLinkElement
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / Element / InputLinkElement.php
index 050d8e4..69cdf61 100644 (file)
@@ -16,6 +16,7 @@ namespace TYPO3\CMS\Backend\Form\Element;
 
 use TYPO3\CMS\Backend\Utility\BackendUtility;
 use TYPO3\CMS\Core\Imaging\Icon;
+use TYPO3\CMS\Core\LinkHandling\Exception\UnknownLinkHandlerException;
 use TYPO3\CMS\Core\LinkHandling\LinkService;
 use TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException;
 use TYPO3\CMS\Core\Resource\Exception\FolderDoesNotExistException;
@@ -317,6 +318,8 @@ class InputLinkElement extends AbstractFormElement
             return $data;
         } catch (FolderDoesNotExistException $e) {
             return $data;
+        } catch (UnknownLinkHandlerException $e) {
+            return $data;
         }
 
         // Resolving the TypoLink parts (class, title, params)