Project

General

Profile

Actions

Bug #6849

closed

Psych.load_file throws TypeError for empty file

Added by BrandonMathis (Brandon Mathis) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.0.0]
Backport:
[ruby-core:47094]

Description

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


Files

noname (500 Bytes) noname Anonymous, 08/14/2012 06:53 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0