Skip to content

Commit ef8045d

Browse files
committed
Fixed NPE
1 parent 70864cb commit ef8045d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/inputs/protocols/ethereum.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def get_block(height)
4848

4949
def unhex(data, num_keys)
5050
data.each do |key, value|
51-
next if !value || value.kind_of?(Array)
51+
next if value.nil? or value.kind_of?(Array)
5252

5353
if num_keys.include? key
5454
data[key] = value.to_decimal()

0 commit comments

Comments
 (0)