When mssql response is parsed, header might be nil. (#3971)

When mssql response is parsed, header might be nil.
This commit is contained in:
Clinton Wolfe 2019-04-25 11:09:52 -04:00 committed by GitHub
commit 00bcf91dac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ module Inspec::Resources
results = table.map { |row|
res = {}
headers.each { |header|
res[header.downcase] = row[header]
res[header.downcase] = row[header] if header
}
Hashie::Mash.new(res)
}