diff --git a/bundle/PlatformAdminUI/Menu/RoutePrefixVoter.php b/bundle/PlatformAdminUI/Menu/RoutePrefixVoter.php
index <HASH>..<HASH> 100644
--- a/bundle/PlatformAdminUI/Menu/RoutePrefixVoter.php
+++ b/bundle/PlatformAdminUI/Menu/RoutePrefixVoter.php
@@ -35,7 +35,7 @@ final class RoutePrefixVoter implements VoterInterface
             return null;
         }
 
-        $currentRoute = $request->attributes->get('_route');
+        $currentRoute = $request->attributes->get('_route') ?? '';
         if (mb_strpos($currentRoute, $this->routePrefix) !== 0) {
             return null;
         }
Fix route prefix voter when there is no route