From 4e48fa926e70947c95b61a6601087200c105faf9 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 6 May 2013 15:10:43 +0800 Subject: Bug 868915: guided bug entry's guided_products.js throws ISE when a product is missing --- extensions/BMO/Extension.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index af5ae526e..07f8357f1 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -1049,6 +1049,7 @@ sub forced_format { # always work on the correct product name $product = Bugzilla::Product->new({ name => $product, cache => 1 }) unless blessed($product); + return undef unless $product; # check for a forced-format entry my $forced = $create_bug_formats{$product->name} -- cgit v1.2.3-24-g4f1b