diff --git a/lib/hipmost/hipchat/room.rb b/lib/hipmost/hipchat/room.rb index c60f266..7be9963 100644 --- a/lib/hipmost/hipchat/room.rb +++ b/lib/hipmost/hipchat/room.rb @@ -42,7 +42,7 @@ def private? end def users - if not attrs["members"].first.is_a? Integer + if not attrs["members"].first.nil? and not attrs["members"].first.is_a? Integer @users ||= [ Hipchat.users[attrs["members"].first["id"]] ] else @users ||= attrs["members"].map{|uid| Hipchat.users[uid] }