rapid7/metasploit-framework — pull request #1805 by jlee-r7 (2013-05-07 23:08:30+00:00)
Title: Fix unintelligible error when importing empty file

IO#read returns nil for an empty file if given a length argument, which
caused a stack trace when attempting to import a file instead of a
useful error message.