Hi,

Here's a bug that someone on IRC discovered in 0.83; it is not present
in the old 0.40 that I'm still using.

Any plugin using $transaction->header->foo would crash with: Can't
call method "foo" on an undefined value.

By reading and comparing sources I discovered that while 0.40 does
$self->transaction->header($header) unconditionally, the new version
does this in the if ($in_header and m/^$/) block.

Perhaps the best way to deal with the problem is to test $in_header
after the while-getline loop. If it's still true, the data is malformed
and an error message could reflect this.
-- 
Met vriendelijke groet, // Kind regards, // Korajn salutojn,

Juerd Waalboer  <ju...@tnx.nl>
TNX

Reply via email to