From: "BrandonMathis (Brandon Mathis)" Date: 2012-08-10T03:54:07+09:00 Subject: [ruby-core:47094] [ruby-trunk - Bug #6849][Open] Psych.load_file throws TypeError for empty file Issue #6849 has been reported by BrandonMathis (Brandon Mathis). ---------------------------------------- Bug #6849: Psych.load_file throws TypeError for empty file https://bugs.ruby-lang.org/issues/6849 Author: BrandonMathis (Brandon Mathis) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.0.0] When parsing an empty file via Psych.load_file: TypeError: no implicit conversion from nil to integer I would expect that an empty hash or array would be returned. This, more directly, relates to parsing YAML documents using YAML.load_file -- http://bugs.ruby-lang.org/