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

parsing nil needs to not coredump #15

Closed
lamont-granquist opened this issue Sep 5, 2014 · 0 comments · Fixed by #32
Closed

parsing nil needs to not coredump #15

lamont-granquist opened this issue Sep 5, 2014 · 0 comments · Fixed by #32
Labels
Type: Bug Does not work as expected.

Comments

@lamont-granquist
Copy link
Contributor

this coredumps:

FFI_Yajl::Parser.parse(nil)

other gems throw exceptions:

> JSON.parse(nil)

TypeError: no implicit conversion of nil into String

from /Users/lamont/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/json/common.rb:155:in `initialize'
> Yajl::Parser.parse(nil)

Yajl::ParseError: input must be a string or IO

from /Users/lamont/.rvm/gems/ruby-2.1.2/gems/yajl-ruby-1.2.1/lib/yajl.rb:37:in `parse'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants