From: Max Kanat-Alexander Date: Sat, 20 Feb 2010 20:05:21 +0000 (-0800) Subject: Bug 546867: Prevent email_in.pl from throwing a cryptic error on receiving X-Git-Tag: bugzilla-3.7.1~232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd9c365233b1418e44b2add9df0c521577a0c181;p=thirdparty%2Fbugzilla.git Bug 546867: Prevent email_in.pl from throwing a cryptic error on receiving an invalid email r=LpSolit, a=LpSolit --- diff --git a/email_in.pl b/email_in.pl index 7f2b2f6e4d..1f610f1383 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;