dblock / slack-gamebot

Ping pong, chess, pool and other games bot for Slack.
MIT License
129 stars 103 forks source link

undefined method `map' for nil:NilClass (NoMethodError) #80

Closed dblock closed 8 years ago

dblock commented 8 years ago

app[web.1]: E, [2016-01-22T21:20:52.851342 #3] ERROR -- : undefined method `map' for nil:NilClass (NoMethodError)

app[web.1]: /app/slack-gamebot/models/season.rb:26:in `to_s'

app[web.1]: /app/slack-gamebot/commands/seasons.rb:7:in `map'

app[web.1]: /app/slack-gamebot/commands/seasons.rb:7:in `call'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.6.0/lib/slack-ruby-bot/commands/base.rb:63:in `block in invoke'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.6.0/lib/slack-ruby-bot/commands/base.rb:54:in `each_pair'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.6.0/lib/slack-ruby-bot/commands/base.rb:54:in `invoke'

app[web.1]: /app/config/initializers/slack-ruby-bot/commands/base.rb:10:in `invoke'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.14.1.311/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:362:in `perform_action_with_newrelic_trace'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/newrelic-slack-ruby-bot-0.1.0/lib/newrelic-slack-ruby-bot/instrumentation.rb:22:in `message_with_new_relic'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/slack-ruby-client-0.5.2/lib/slack/real_time/client.rb:146:in `call'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.6.0/lib/slack-ruby-bot/hooks/message.rb:10:in `block in message'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/slack-ruby-client-0.5.2/lib/slack/real_time/client.rb:145:in `each'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.6.0/lib/slack-ruby-bot/hooks/message.rb:10:in `each'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/slack-ruby-client-0.5.2/lib/slack/real_time/client.rb:145:in `dispatch'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.6.0/lib/slack-ruby-bot/hooks/message.rb:10:in `detect'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/slack-ruby-client-0.5.2/lib/slack/real_time/client.rb:98:in `block (2 levels) in run_loop'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/newrelic-slack-ruby-bot-0.1.0/lib/newrelic-slack-ruby-bot/instrumentation.rb:23:in `block in message_with_new_relic'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb:39:in `call'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.6.0/lib/slack-ruby-bot/hooks/message.rb:10:in `message'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb:39:in `block in emit'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb:38:in `each'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb:38:in `emit'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.6.0/lib/slack-ruby-bot/server.rb:96:in `block (2 levels) in client'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/faye-websocket-0.10.2/lib/faye/websocket/api/event_target.rb:45:in `dispatch_event'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/faye-websocket-0.10.2/lib/faye/websocket/api.rb:106:in `receive_message'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/slack-ruby-client-0.5.2/lib/slack/real_time/client.rb:146:in `block in dispatch'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/faye-websocket-0.10.2/lib/faye/websocket/api.rb:40:in `block in initialize'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb:39:in `call'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb:39:in `block in emit'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/websocket-driver-0.6.3/lib/websocket/driver/hybi.rb:383:in `emit_frame'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/websocket-driver-0.6.3/lib/websocket/driver/hybi.rb:121:in `parse'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/faye-websocket-0.10.2/lib/faye/websocket/api.rb:145:in `parse'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/websocket-driver-0.6.3/lib/websocket/driver/client.rb:63:in `parse'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/faye-websocket-0.10.2/lib/faye/websocket/client.rb:71:in `receive_data'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/eventmachine-1.0.8/lib/eventmachine.rb:193:in `run_machine'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb:38:in `each'

app[web.1]: config.ru:19:in `block (2 levels) in <main>'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb:38:in `emit'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/websocket-driver-0.6.3/lib/websocket/driver/hybi.rb:400:in `emit_message'

app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/eventmachine-1.0.8/lib/eventmachine.rb:193:in `run'