From 3272176a7b37b3bd30ef376f7b782f736d207cd4 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 19 Dec 2012 23:38:07 +0100 Subject: Bug 819330: Bugzilla crashes when cloning a bug if the CC list is empty r=dkl a=LpSolit --- Bugzilla/WebService/Bug.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/WebService') diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index a7f8446ec..709983389 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -882,7 +882,7 @@ sub _bug_to_hash { $item{'blocks'} = \@blocks; } if (filter_wants $params, 'cc') { - my @cc = map { $self->type('email', $_) } @{ $bug->cc || [] }; + my @cc = map { $self->type('email', $_) } @{ $bug->cc }; $item{'cc'} = \@cc; } if (filter_wants $params, 'creator') { -- cgit v1.2.3-24-g4f1b