trammell / perl-critic-petpeeves-jtrammell

Perl package Perl::Critic::PetPeeves::JTRAMMELL
Other
0 stars 0 forks source link

Fatal error while critiquing ...: Can't call method "isa" on an undefined value at .../ProhibitUselessInitialization.pm line 138 #4

Closed moregan closed 10 years ago

moregan commented 10 years ago

A near-repeat of a previous issue:

echo 'OutputPath => ( {\(my $o = undef) } )' | perlcritic --single Variables::ProhibitUselessInitialization

Fatal error while critiquing "SCALAR(0x1240520)": Can't call method "isa" on an undefined value at /usr/share/perl5/vendor_perl/Perl/Critic/Policy/Variables/ProhibitUselessInitialization.pm line 138.
trammell commented 10 years ago

Thank you so much for the bug report!