Handle nil case of empty decompression
This commit is contained in:
parent
6e7be263af
commit
2ba05193c5
|
@ -30,7 +30,11 @@ class Packet
|
||||||
return unless flags_compressed
|
return unless flags_compressed
|
||||||
|
|
||||||
@payload = @huffman.decompress(@payload.unpack('C*'))
|
@payload = @huffman.decompress(@payload.unpack('C*'))
|
||||||
@payload = @payload.pack('C*')
|
if @payload.nil?
|
||||||
|
@payload = ''
|
||||||
|
else
|
||||||
|
@payload = @payload.pack('C*')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def annotate_first_row(bytes)
|
def annotate_first_row(bytes)
|
||||||
|
|
Loading…
Reference in a new issue