ac3cloud / roust

Ruby client for Request Tracker's REST API
Other
6 stars 4 forks source link

Search throws NoMethodError when no results are returned and :verbose => true #5

Closed Sarah-E-Greene closed 10 years ago

Sarah-E-Greene commented 10 years ago
@rt.search(:query => %(Subject = "asdfdsafwefweqf3wqpoifjaewpf"), :verbose => true)
NoMethodError: undefined method `split' for nil:NilClass
from /Users/sarah/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/roust-1.7.0/lib/roust/ticket.rb:207:in `parse_ticket_attributes'

This works correctly in the non-verbose form:

@rt.search(:query => %(Subject = "asdfdsafwefweqf3wqpoifjaewpf"))
=> [{"id"=>"No matching results.", "Subject"=>nil}]