Check nil before using .empty?
This commit is contained in:
parent
69570dada6
commit
3fe076bcd6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue