rapid7/metasploit-framework — pull request #2247 by ndavis-r7 (2013-08-19 20:19:50+00:00)
Title: [FixRM #8310] Added check to make sure a database was connected

Plugin would access the db even when it was not connected, resulting in a crash. Added a check, and a print_status to alert the user that the db was not connected.