From: Don Armstrong Date: Wed, 16 Apr 2014 17:10:46 +0000 (-0700) Subject: Also check for package being defined before checking package for spaces and slashes X-Git-Tag: release/2.6.0~263 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=13ec5025323d6fc900f601a6591d096afdb03549;ds=sidebyside Also check for package being defined before checking package for spaces and slashes --- diff --git a/Debbugs/Status.pm b/Debbugs/Status.pm index dfafce1..7350661 100644 --- a/Debbugs/Status.pm +++ b/Debbugs/Status.pm @@ -732,7 +732,7 @@ sub addfoundversions { my $version = shift; my $isbinary = shift; return unless defined $version; - undef $package if $package =~ m[(?:\s|/)]; + undef $package if defined $package and $package =~ m[(?:\s|/)]; my $source = $package; if (defined $package and $package =~ s/^src://) { $isbinary = 0;