Call to a member function getCardinality() on null in Drupal\ai_provider_amazeeio\Vdb\Postgres\PostgresPgvectorClient->updateFields()
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3555634. --> Reported by: [mxr576](https://www.drupal.org/user/315522) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p><code>Error: Call to a member function getCardinality() on null in Drupal\ai_provider_amazeeio\Vdb\Postgres\PostgresPgvectorClient-&gt;updateFields() (line 495 of modules/contrib/ai_provider_amazeeio/src/Vdb/Postgres/PostgresPgvectorClient.php). </code> is triggered (via <code>ai_provider_amazeeio_search_api_index_update()</code> in my case) when the type of the <code>$field</code> is <code>\Drupal\search_api\Item\Field</code>.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue