summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xemail_in.pl1
1 files changed, 1 insertions, 0 deletions
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;