Form alter potentially causes exception in content module
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3253762. --> Reported by: [jurgenhaas](https://www.drupal.org/user/168924) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>In <code>\Drupal\danse_content\Plugin\Danse\Content::buildForm</code>, the <code>$this-&gt;routeMatch-&gt;getRouteName();</code> potentially returns NULL, e.g. if a non-existing route gets called. This needs to be avoided.</p>
issue