Saving Encryption profile settings the first time results in fatal
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3347429. --> Reported by: [generalredneck](https://www.drupal.org/user/368854) Related to !14 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>I was exploring some issues I was having and noticed I hadn't set up an encryption profile yet. When to do so and got the following after the first save:</p> <p> TypeError: Drupal\drd\EncryptionUpdate::update(): Argument #1 ($old_profile_id) must be of type string, null given, called in /app/web/modules/contrib/drd/src/Form/Settings.php on line 214 in Drupal\drd\EncryptionUpdate-&gt;update() (line 69 of /app/web/modules/contrib/drd/src/EncryptionUpdate.php).</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>New install of Drupal 10<br> Install Drd<br> Install real aes<br> Create your key<br> create your encryption profile<br> add a host<br> go to /drd/cores/add<br> Click on link in error message to navigate to drd/settings<br> Select the newly created encryption profile</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Need to do some error checking over here because $old_profile_id doesn't exist yet.</p> <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