Call to a member function label() on null in gin_preprocess_breadcrumb()
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3270385. --> Reported by: [boromino](https://www.drupal.org/user/859722) Related to !111 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>On gin_preprocess_breadcrumb() $node is not always instanceof NodeInterface and it breaks the administration page.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ol> <li>Create an administration view with a url that contains a "%node" route parameter and a Content:ID as contextual filter.</li> <li>Visit the url of the created view</li> </ol> <p>The following error appears:</p> <blockquote><p> The website encountered an unexpected error. Please try again later.<br> Error: Call to a member function label() on null in gin_preprocess_breadcrumb() (line 16 of themes/contrib/gin/includes/breadcrumb.theme).</p> <p>gin_preprocess_breadcrumb() (Line: 287)<br> Drupal\Core\Theme\ThemeManager-&gt;render() (Line: 422) </p></blockquote> > Related issue: [Issue #3269424](https://www.drupal.org/node/3269424)
issue