Commit fdce82f1 authored by andriy_novak's avatar andriy_novak Committed by Nick_vh

Issue #2957129 by andriy_novak, Nick_vh: Error: Call to a member function...

Issue #2957129 by andriy_novak, Nick_vh: Error: Call to a member function isRenderedInCurrentRequest() on null
parent 28764cbd
......@@ -74,7 +74,8 @@ class FacetBlock extends BlockBase implements ContainerFactoryPluginInterface {
$facet = $this->facetStorage->load($this->getDerivativeId());
// No need to build the facet if it does not need to be visible.
if ($facet->getOnlyVisibleWhenFacetSourceIsVisible() && !$facet->getFacetSource()->isRenderedInCurrentRequest()) {
if ($facet->getOnlyVisibleWhenFacetSourceIsVisible() &&
(!$facet->getFacetSource() || !$facet->getFacetSource()->isRenderedInCurrentRequest())) {
return [];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment