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

Psych is unable to dump instance of Twitter::NullObject #614

Closed
sealabcore opened this issue Sep 27, 2014 · 1 comment
Closed

Psych is unable to dump instance of Twitter::NullObject #614

sealabcore opened this issue Sep 27, 2014 · 1 comment

Comments

@sealabcore
Copy link

null_object = Twitter::NullObject.new
Psych.dump(null_object)

NoMethodError: undefined method `name' for nil:NilClass
    from /Users/miketaylor/.rvm/gems/ruby-1.9.3-p545@kit/gems/psych-2.0.6/lib/psych/visitors/yaml_tree.rb:72:in `block in initialize'
    from /Users/miketaylor/.rvm/gems/ruby-1.9.3-p545@kit/gems/psych-2.0.6/lib/psych/visitors/yaml_tree.rb:74:in `yield'
    from /Users/miketaylor/.rvm/gems/ruby-1.9.3-p545@kit/gems/psych-2.0.6/lib/psych/visitors/yaml_tree.rb:74:in `default'
@sealabcore
Copy link
Author

Fixed in pull request: #615

@sferik sferik closed this as completed in cd32e31 Nov 10, 2014
sferik added a commit that referenced this issue Nov 10, 2014
sferik added a commit that referenced this issue Sep 6, 2015
sferik added a commit that referenced this issue Sep 6, 2015
sferik added a commit that referenced this issue Sep 6, 2015
sferik added a commit that referenced this issue Sep 6, 2015
sferik added a commit that referenced this issue Sep 6, 2015
sferik added a commit that referenced this issue Sep 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant