Call to a member function getTitle() on null in gin_preprocess_page_title()
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3269424. --> Reported by: [karma86](https://www.drupal.org/user/1485740) Related to !109 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>On gin_preprocess_page_title() $node is not always instanceof Node and it breakes the administration page.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Create a administration view with a url that contains a "%node" route parameter and a Content:ID as contextual filter.</p> <p>I think this problem is introduced here <a href="https://git.drupalcode.org/project/gin/-/commit/a46976df65d5610f8c91259ae29dfcbbfdd9cc7d">https://git.drupalcode.org/project/gin/-/commit/a46976df65d5610f8c91259ae29dfcbbfdd9cc7d</a> (not sure if there is a drupal issue for this commit). I&rsquo;ve created a patch that solves the problem by checking the route name.</p>
issue