mperham/sidekiq — pull request #1842 by stefl (2014-07-11 22:53:06+00:00)
Title: Nil messages

I experienced a problem with nil messages with Sidekiq that would stop all workers from running:

WARN: {:message=>nil}
TypeError: no implicit conversion of nil into String

It's possible that this was concurrent with running out of space in Redis.

All workers would crash in this state, no jobs would execute, and it was difficult to work out how to clear the badly formatted jobs.

Adding a simple `if` statement resolved the issue. I'm not sure you will want to merge this without a test, but I thought I should present a solution for anyone else experiencing similar.