TypeError in ParagraphLineageInspector::findParentFieldItem()
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3561745. -->
Reported by: [liam morland](https://www.drupal.org/user/493050)
Related to !18
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>If <code>ParagraphLineageInspector::findParentFieldItem()</code> is called with null <code>$field</code> param, it will result in this error:</p>
<blockquote><p>TypeError: Drupal\paragraphs_edit\ParagraphLineageInspector::findParentFieldItem(): Argument #2 ($field) must be of type Drupal\entity_reference_revisions\EntityReferenceRevisionsFieldItemList, null given, called in …/paragraphs_edit/src/ParagraphLineageInspector.php on line 86 in Drupal\paragraphs_edit\ParagraphLineageInspector->findParentFieldItem() (line 100 of …/paragraphs_edit/src/ParagraphLineageInspector.php).</p></blockquote>
<p>Also, a development release node for 3.x should be created so that 3.x can be selected in the Version menu for issues.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Do not call with a null <code>$field</code>.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Implement.</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>None.</p>
<h3 id="summary-api-changes">API changes</h3>
<p>None.</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>None.</p>
issue