nomad-cli / houston

Apple Push Notifications; No Dirigible Required
http://nomad-cli.com
MIT License
2.93k stars 229 forks source link

Houston::Client.push([]) raises error #127

Closed samsondav closed 3 years ago

samsondav commented 8 years ago

Steps to reproduce:

notifications = [] # perhaps some database select returned empty
Houston::Client.push(notifications)

raises

TypeError: no implicit conversion of nil into String
from /Users/sam/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/houston-2.2.3/lib/houston/connection.rb:39:in `initialize'

I would have expected it to return nil instead.