Skip to content

Commit 1bf1b06

Browse files
committed
Add check for default encryption profile
1 parent 9c7a3db commit 1bf1b06

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/os2forms_encrypt/src/Commands/Os2FormsEncryptCommands.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ public function enabledEncrypt(): void {
5858

5959
$defaultEncryptionProfile = $config->get('default_encryption_profile');
6060

61+
if (!$defaultEncryptionProfile) {
62+
$this->output()->writeln('Default encryption profile is missing. Set one and try again.');
63+
return;
64+
}
65+
6166
// Get the storage for Webform entity type.
6267
$webformStorage = $this->entityTypeManager->getStorage('webform');
6368

0 commit comments

Comments
 (0)