Skip to content

Commit 6e8e7a4

Browse files
author
kernelsmith
committed
adds a .nil? check as well
1 parent 7090a4a commit 6e8e7a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/db.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4869,7 +4869,7 @@ def import_nmap_noko_stream(args, &block)
48694869
# If you have Nokogiri installed, you'll be shunted over to
48704870
# that. Otherwise, you'll hit the old NmapXMLStreamParser.
48714871
def import_nmap_xml(args={}, &block)
4872-
return nil if args[:data].empty?
4872+
return nil if args[:data].nil? or args[:data].empty?
48734873
wspace = args[:wspace] || workspace
48744874
bl = validate_ips(args[:blacklist]) ? args[:blacklist].split : []
48754875

0 commit comments

Comments
 (0)