Skip to content

Conversation

@jccyr01
Copy link
Contributor

@jccyr01 jccyr01 commented Mar 31, 2013

I was often getting errors when using the System::nameservers
(~/dev/ruby_gem/rubydns/lib/rubydns/resolver.rb:226:in receive_data': undefined method+' for nil:NilClass (NoMethodError))

@ioquatix
Copy link
Member

Looks great, however in what cases is @length nil? I'm just trying to figure out what is going on in the state machine to cause the bug to occur.

ioquatix added a commit that referenced this pull request Mar 31, 2013
Fix potential null exception on TCP requests
@ioquatix ioquatix merged commit 8dafc91 into socketry:master Mar 31, 2013
@ioquatix
Copy link
Member

Thanks for the bug fix. I may edit this function a bit further to tidy it up. It looks like I've gone through several iterations of the logic without refactoring the overall code.

@ioquatix
Copy link
Member

I have release a new gem with this update included, v0.6.1

ioquatix added a commit that referenced this pull request Oct 23, 2014
Fix potential null exception on TCP requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants