Skip Menu |

This queue is for tickets about the OpenOffice-OODoc CPAN distribution.

Report information
The Basics
Id: 42038
Status: resolved
Priority: 0/
Queue: OpenOffice-OODoc

People
Owner: Nobody in particular
Requestors: barries [...] slaysys.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.107
Fixed in: 2.108



Subject: getAttributes() null reference in hash dereference at line 2509 (with fix)
Xpath.pm's getAttributes() warns about a null reference in hash dereference if $node->atts(@_) returns an empty list or undef. The following "|| {}" work-around prevents this warning: sub getAttributes { my $node = shift; return %{$node->atts(@_) || {}}; }
Fixed in 2.108. Thanks for your contribution. Le Mar. Déc. 30 08:25:18 2008, barries@slaysys.com a écrit : Show quoted text
> Xpath.pm's getAttributes() warns about a null reference in hash > dereference if $node->atts(@_) returns an empty list or undef. > > The following "|| {}" work-around prevents this warning: > > sub getAttributes > { > my $node = shift; > return %{$node->atts(@_) || {}}; > }