Fatal error on admin page
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3097934. -->
Reported by: [wturrell](https://www.drupal.org/user/3503356)
>>>
<p>- Menus functioning correctly on public site.<br>
- Admin index (/admin/structure/menu-position) working as normal.</p>
<p>Getting this when attempting to edit a rule - e.g. /admin/structure/menu-position/myrule</p>
<blockquote><p>Call to a member function getAvailableContexts() on null in Drupal\menu_position\Form\MenuPositionRuleForm->form() (line 75 of /var/www/examplesite/web/modules/contrib/menu_position/src/Form/MenuPositionRuleForm.php)
</p></blockquote>
<p>Code:</p>
<pre> // Set these for use when attaching condition forms.<br> $form_state->setTemporaryValue('gathered_contexts', $this->context_repository->getAvailableContexts());</pre><p>If I add a conditional for that, there's then a subsequent error for line 111:</p>
<blockquote><p>Call to a member function getParentSelectOptions() on null </p></blockquote>
<p>Debugging suggestions welcome.</p>
<p>Drupal core 8.8-rc1<br>
menu_position: 8.x-1.0-alpha1 (3 Jan 2019, sha 1e7927c72b1641a88193a5c02d65880a4ee657cdd)</p>
> Related issue: [Issue #3094913](https://www.drupal.org/node/3094913)
issue