From dd9c365233b1418e44b2add9df0c521577a0c181 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Sat, 20 Feb 2010 12:05:21 -0800 Subject: Bug 546867: Prevent email_in.pl from throwing a cryptic error on receiving an invalid email r=LpSolit, a=LpSolit --- email_in.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'email_in.pl') diff --git a/email_in.pl b/email_in.pl index 7f2b2f6e4..1f610f138 100755 --- a/email_in.pl +++ b/email_in.pl @@ -157,6 +157,7 @@ sub post_bug { # Restrict the bug to groups marked as Default. # We let Bug->create throw an error if the product is # not accessible, to throw the correct message. + $fields->{product} = '' if !defined $fields->{product}; my $product = new Bugzilla::Product({ name => $fields->{product} }); if ($product) { my @gids; -- cgit v1.2.3-24-g4f1b