From 3dae100b6b7dd2db8c2fed80c9c1b68c07140894 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 17 Aug 2015 22:35:06 +0800 Subject: Bug 1195315 - Use of uninitialized value in string eq at Bugzilla/Product.pm line 99 --- Bugzilla/Product.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm index 5837d8457..491658614 100644 --- a/Bugzilla/Product.pm +++ b/Bugzilla/Product.pm @@ -96,6 +96,7 @@ sub create { # Some fields can be NULLs foreach my $field (qw( default_op_sys_id default_platform_id )) { + next unless exists $params->{$field} && defined $params->{$field}; $params->{$field} = undef if $params->{$field} eq ''; } -- cgit v1.2.3-24-g4f1b