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

Fix undefined method error in sidekiq #9807

Merged
merged 2 commits into from
Jan 14, 2019

Conversation

renatolond
Copy link
Contributor

Body can be not nil but still be empty, which causes a NoMethodError: undefined method []' for nil:NilClass` further in the code. This checks for an empty body to avoid the issue.

Body can be not nil but still be empty, which causes a
`NoMethodError: undefined method `[]' for nil:NilClass` further in the
code. This checks for an empty body to avoid the issue.
@Gargron Gargron merged commit 5c5e14c into mastodon:master Jan 14, 2019
abcang pushed a commit to pixiv/mastodon that referenced this pull request Oct 1, 2019
* Fix undefined method error in sidekiq

Body can be not nil but still be empty, which causes a
`NoMethodError: undefined method `[]' for nil:NilClass` further in the
code. This checks for an empty body to avoid the issue.

* Fix codeclimate issue
abcang added a commit to pixiv/mastodon that referenced this pull request Oct 1, 2019
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
* Fix undefined method error in sidekiq

Body can be not nil but still be empty, which causes a
`NoMethodError: undefined method `[]' for nil:NilClass` further in the
code. This checks for an empty body to avoid the issue.

* Fix codeclimate issue
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 this pull request may close these issues.

None yet

3 participants