getRouteObject can return null or The route object NULL if no route is matched

Created on 12 September 2022, almost 2 years ago
Updated 15 May 2023, about 1 year ago

When Drush sapi-i, it keeps indexing the contests and it fails at some point.
I keep getting the following error:

Unable to decode output into JSON: Syntax error

Error: Call to a member function hasOption() on null in Drupal\facets\Plugin\facets\facet_source\SearchApiDisplay->fillFacetsWit
hResults() (line 198 of /var/www/html/docroot/modules/contrib/facets/src/Plugin/facets/facet_source/SearchApiDisplay.php).
--------
also:

Error: Call to a member function hasOption() on null in /var/www/html/docroot/modules/contrib/facets/src/Plugin/facets/facet_source/SearchApiDisplay.php on line 198 #0 /var/www/html/docroot/modules/contrib/facets/src/FacetManager/DefaultFacetManager.php(464): Drupal\facets\Plugin\facets\facet_source\SearchApiDisplay->fillFacetsWithResults(Array)

I was able to fix this issue by wrapping it with if condition.

πŸ› Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States abiyub

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024