I am totally new to Ruby and while testing some changes , I'm getting the error below: Can somebody please highlight what does the below mean ?
undefined method [] for nil:NilClass
adapterClient = Service.get_client(
ADAPTER_SERVICE_NAME,
service_info['server'],
service_info['port'],
service_info['path']
)
When you see
undefined method '[]' for nil:NilClass, it means:In your case, it could be
service_info['server'],service_info['port']orservice_info['path']isnil.