Thank you for the bug report! This was an oversight on my part and it shows up in other
parts of the code as well. Temporarily you should be able to adjust the comment method at
line 200 of MediaWiki/DumpFile/Pages.pm to read like this:
sub comment {
if (defined($_[0]->{tree}->get_elements('comment')) {
return $_[0]->{tree}->get_elements('comment')->text;
}
return '';
}
I'll get 0.1.2 released soon (with in a day or two) that'll incorporate a better fix and it'll apply
to all the elements that may have 0 occurrences as well.
Tyler
On Sun Mar 21 10:16:18 2010, ablimit@gmail.com wrote:
Show quoted text> *Bug: *When calling subroutine comment ($revision->comment), it throws null
> pointer exception.
>
> *Reason*: in dump file, the <comment></comment> tags may not exist.