Check nil before using .empty?

This commit is contained in:
sinn3r 2011-12-23 17:42:58 -06:00
parent 69570dada6
commit 3fe076bcd6
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class Metasploit3 < Msf::Post
print_error "Unsupported platform #{session.platform}"
return
end
if paths.empty?
if path.nil? or paths.empty?
print_status("No users found with a .purple directory")
return
end