Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Digest#== throws TypeError when testing against nil (ruby bug #9913) #1798

Closed
malakai97 opened this issue Jul 7, 2014 · 2 comments
Closed

Comments

@malakai97
Copy link

Reposting here; forgive me if this is redundant.

See: http://bugs.ruby-lang.org/issues/9913

present in: ruby -v: jruby 1.7.10 (1.9.3p392) 2014-01-09 c4ecd6b on OpenJDK 64-Bit Server VM 1.7.0_55-b14 [linux-amd64]

@kares
Copy link
Member

kares commented Sep 8, 2014

this actually is a core Digest issue - not an OpenSSL one ... issue is present in 2.1.2 :

2.1.2 :001 > require 'digest'
 => true 
2.1.2 :002 > x = Digest::SHA256.new()
 => #<Digest::SHA256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855> 
2.1.2 :003 > x == nil
TypeError: no implicit conversion of nil into String
    from (irb):3:in `=='
    from (irb):3
    from /opt/local/rvm/rubies/ruby-2.1.2/bin/irb:11:in `<main>'
2.1.2 :004 > RUBY_VERSION
 => "2.1.2" 

as well as all 1.9.x MRi releases ... should be fixed in next 2.x release(s)

@kares
Copy link
Member

kares commented Jan 20, 2017

this is behaving in 9.1.7.0 correctly.

@kares kares closed this as completed Jan 20, 2017
@kares kares added this to the Invalid or Duplicate milestone Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants