Check config isnt null before setting encryptor.
@@ -171,7 +171,8 @@ public class DefaultCliAdapter implements CliAdapter, Callable<CliResult> {
final List<ConfigKeyPair> newKeys = new KeyGenerationParser(encryptorConfig).parse(commandLine);
final Config config = new ConfigurationParser(newKeys).parse(commandLine);
- config.setEncryptor(encryptorConfig);
+ Optional.ofNullable(config)
+ .ifPresent(c -> c.setEncryptor(encryptorConfig));
return config;
}
