CC: | dbwells [...] gmail.com |
Subject: | New decode() fails on completely empty records |
This may be a "won't fix" type of bug, but since I hit it, I'll let the
maintainer decide.
If you have a <record /> tag with nothing in it, decode dies with 'Can't
call method "textContent" on an undefined value at
/usr/local/share/perl/5.10.1/MARC/File/XML.pm line 456.' (where it tries
to peek at the leader, which doesn't exist). The prior version (0.93)
happily returned an empty MARC::Record object instead of dying.