diff --git a/core/modules/system/src/PathBasedBreadcrumbBuilder.php b/core/modules/system/src/PathBasedBreadcrumbBuilder.php
index 517a571712681243c2097bb01f0e8f1ac6e8791f..64985ed1ed9219d7ae4481a94b6d5813928526e5 100644
--- a/core/modules/system/src/PathBasedBreadcrumbBuilder.php
+++ b/core/modules/system/src/PathBasedBreadcrumbBuilder.php
@@ -21,6 +21,7 @@
 use Drupal\Core\Url;
 use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
+use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
 use Symfony\Component\Routing\Exception\MethodNotAllowedException;
 use Symfony\Component\Routing\Exception\ResourceNotFoundException;
 use Symfony\Component\Routing\Matcher\RequestMatcherInterface;
@@ -237,6 +238,9 @@ protected function getRequestForPath($path, array $exclude) {
     catch (AccessDeniedHttpException $e) {
       return NULL;
     }
+    catch (NotFoundHttpException $e) {
+      return NULL;
+    }
   }
 
 }