qup icon indicating copy to clipboard operation
qup copied to clipboard

No method error while unmarshalling

Open dharmesh28 opened this issue 11 years ago • 2 comments
trafficstars

<NoMethodError: undefined method `ord' for nil:NilClass>

/usr/lib64/ruby/gems/1.8/gems/qup-1.4.0/lib/qup/adapter/kestrel/queue.rb:92:in unmarshal_if_marshalled' /usr/lib64/ruby/gems/1.8/gems/qup-1.4.0/lib/qup/adapter/kestrel/queue.rb:65:inconsume' /usr/lib64/ruby/gems/1.8/gems/qup-1.4.0/lib/qup/consumer.rb:27:in `consume'

dharmesh28 avatar Sep 17 '14 12:09 dharmesh28

The issue here is in qup-1.4.0/lib/qup/adapter/kestrel/queue.rb in method consume it returns nil after testing if q_item is nil whereas it should test if q_item[0] and q_item[1] is nil also.

dharmesh28 avatar Sep 17 '14 13:09 dharmesh28

Thanks for reporting this, I'll dig into in the next day or so. It might be a case where it should be fixed in Kjess.

copiousfreetime avatar Sep 17 '14 17:09 copiousfreetime