lib/utils/database_helpers.rb in inspec-2.0.17 vs lib/utils/database_helpers.rb in inspec-2.0.32
- old
+ new
@@ -8,10 +8,10 @@
@row = row
@name = name
end
def value
- @row[@name.downcase]
+ @row.nil? ? '' : @row[@name.downcase]
end
def to_s
'SQL Column'
end