Skip to content

Commit f535f2a

Browse files
authored
Allow the URL helper to be created even if Application does not yet have MvcEvent. (#5063)
While this shouldn't happen, anything (such as an event listener) that tries to create the plugin before MvcEvent is created for Application would cause an error.
1 parent 4887fc1 commit f535f2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/VuFind/src/VuFind/View/Helper/Root/UrlFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function __invoke(
7979

8080
$match = $container->get('Application')
8181
->getMvcEvent()
82-
->getRouteMatch();
82+
?->getRouteMatch();
8383

8484
if ($match instanceof RouteMatch) {
8585
$helper->setRouteMatch($match);

0 commit comments

Comments
 (0)