Commit fc185f73 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 364743: Crash when renaming components (regression) - Patch by Fré©ric…

Bug 364743: Crash when renaming components (regression) - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=justdave
parent 99cbf8f5
...@@ -74,7 +74,8 @@ sub new { ...@@ -74,7 +74,8 @@ sub new {
unshift @_, $param; unshift @_, $param;
my $component = $class->SUPER::new(@_); 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; return $component;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment