From 3fe076bcd66fc89def6bc95ea3cecd3c5e25bbd7 Mon Sep 17 00:00:00 2001 From: sinn3r Date: Fri, 23 Dec 2011 17:42:58 -0600 Subject: [PATCH] Check nil before using .empty? --- modules/post/multi/gather/pidgin_cred.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/post/multi/gather/pidgin_cred.rb b/modules/post/multi/gather/pidgin_cred.rb index c2927d1a9c..3d45790f0e 100644 --- a/modules/post/multi/gather/pidgin_cred.rb +++ b/modules/post/multi/gather/pidgin_cred.rb @@ -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