From 13ec5025323d6fc900f601a6591d096afdb03549 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 16 Apr 2014 10:10:46 -0700 Subject: [PATCH 1/1] Also check for package being defined before checking package for spaces and slashes --- Debbugs/Status.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2