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

use_camel_case: true causes nil reference error when accessing empty fields #203

Closed
boxbinary opened this issue Jun 30, 2019 · 1 comment · Fixed by #204
Closed

use_camel_case: true causes nil reference error when accessing empty fields #203

boxbinary opened this issue Jun 30, 2019 · 1 comment · Fixed by #204

Comments

@boxbinary
Copy link

The following line references content_type but if you have created the client with use_camel_case: true, the keys of sys have been instantiated using camelCase (e.g. it should be contentType in this case), and a nil reference error is thrown trying to access sys[:content_type].id

sys[:content_type].id

This makes it impossible to use camel casing while also referencing fields that might be empty.

@dlitvakb
Copy link
Contributor

dlitvakb commented Jul 8, 2019

The fix has been released in version 2.13.1.

Cheers

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

Successfully merging a pull request may close this issue.

2 participants