diff --git a/web/themes/asc_bootstrap/asc_bootstrap.theme b/web/themes/asc_bootstrap/asc_bootstrap.theme index 1c6dd5ab17c80c144da8b8b908f08f438678ba9e..e25960df08379b34efc532cfa29cdd899c705cdf 100755 --- a/web/themes/asc_bootstrap/asc_bootstrap.theme +++ b/web/themes/asc_bootstrap/asc_bootstrap.theme @@ -49,7 +49,9 @@ function asc_bootstrap_theme_suggestions_page_alter(array &$suggestions, array $ */ function asc_bootstrap_preprocess_paragraph(&$variables) { $node = \Drupal::request()->attributes->get('node'); - $variables['page_content_type'] = $node->getType(); + if ($node != null) { + $variables['page_content_type'] = $node->getType(); + } }