From a2ca50da4319c8bb16ce2800f16929f8ecb8d057 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Fri, 22 Dec 2006 18:10:21 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20364743:=20Crash=20when=20renaming=20compo?= =?UTF-8?q?nents=20(regression)=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83?= =?UTF-8?q?=C2=A9ric=20Buclin=20=20r/a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@217369 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/Component.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/Component.pm b/mozilla/webtools/bugzilla/Bugzilla/Component.pm index 1b2e8f8d28b..a615e7ae507 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Component.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Component.pm @@ -74,7 +74,8 @@ sub new { unshift @_, $param; my $component = $class->SUPER::new(@_); - $component->{product} = $product if $product; + # Add the product object as attribute only if the component exists. + $component->{product} = $product if ($component && $product); return $component; }