From: Max Kanat-Alexander Date: Sat, 20 Feb 2010 20:06:01 +0000 (-0800) Subject: Bug 546867: Prevent email_in.pl from throwing a cryptic error on receiving X-Git-Tag: bugzilla-3.6rc1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae2693e1c0b1a69b1049292c5b32abaa31c2cd1b;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;