From: "zzak (Zachary Scott)" Date: 2012-10-21T22:32:32+09:00 Subject: [ruby-core:48135] [ruby-trunk - Bug #6849][Closed] Psych.load_file throws TypeError for empty file Issue #6849 has been updated by zzak (Zachary Scott). Status changed from Open to Closed This is a duplicate of #6487 ---------------------------------------- Bug #6849: Psych.load_file throws TypeError for empty file https://bugs.ruby-lang.org/issues/6849#change-31135 Author: BrandonMathis (Brandon Mathis) Status: Closed 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/