diff --git a/lib/manticore/client.rb b/lib/manticore/client.rb index bdc68c2..6082416 100644 --- a/lib/manticore/client.rb +++ b/lib/manticore/client.rb @@ -754,7 +754,7 @@ def setup_key_store(ssl_options, context) def get_store(prefix, options) KeyStore.get_instance(options[:"#{prefix}_type"] || guess_store_type(options[prefix])).tap do |store| instream = open(options[prefix], "rb").to_inputstream - store.load(instream, options.fetch(:"#{prefix}_password", nil).to_java.toCharArray) + store.load(instream, options.fetch(:"#{prefix}_password", nil).to_java&.toCharArray) end end