adds a .nil? check as well

bug/bundler_fix
kernelsmith 2013-01-17 00:30:58 -06:00
parent 7090a4a82f
commit 6e8e7a407d
1 changed files with 1 additions and 1 deletions

View File

@ -4869,7 +4869,7 @@ class DBManager
# If you have Nokogiri installed, you'll be shunted over to
# that. Otherwise, you'll hit the old NmapXMLStreamParser.
def import_nmap_xml(args={}, &block)
return nil if args[:data].empty?
return nil if args[:data].nil? or args[:data].empty?
wspace = args[:wspace] || workspace
bl = validate_ips(args[:blacklist]) ? args[:blacklist].split : []