Passing invalid connection string raises `NoMethodError` - undefined method `<' for nil:NilClass:
Closed this issue · 0 comments
mattt commented
Calling #create_from_connection_string
and passing an arbitrary or empty string causes parse_connection_string
to raise an error.
require 'azure/storage/blob'
Azure::Storage::Blob::BlobService.create_from_connection_string("invalid")
This underlying issue is that calling String#index
with a character not contained in the string returns nil
, and <
is an undefined method on nil
.