Each time I use drush cron, I get 500 entries in dblog:
InvalidArgumentException: Route required in Drupal\Core\Url::fromRouteMatch() (line 171 of /var/www/docroot/core/lib/Drupal/Core/Url.php).
#0 /var/www/docroot/modules/contrib/easy_breadcrumb/src/EasyBreadcrumbBuilder.php(332): Drupal\Core\Url::fromRouteMatch(Object(Drupal\Core\Routing\NullRouteMatch))As you can see in the trace, this is providing a NullRouteMatch for $route_match to Url::fromRouteMatch(), which sees the object on the route is NULL and throws the exception.
This is a minor issue but it is flooding our dblog page and making it unusable. The fix is simple and I will provide it in a merge request.
Issue fork easy_breadcrumb-3463616
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
greg boggsMy site doesn't throw this error on drush cron, but this looks like a good defensive code addition all the same.
Comment #6
spuky commentedLooks good to me Thanks.