summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-12-19 23:38:07 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-12-19 23:38:07 +0100
commit3272176a7b37b3bd30ef376f7b782f736d207cd4 (patch)
tree5629c89e1e5546f8f1b765171d40f645f2356a98 /Bugzilla/WebService
parent387608caac85ccf6c0782572420ecbdae4e301bf (diff)
downloadbugzilla-3272176a7b37b3bd30ef376f7b782f736d207cd4.tar.gz
bugzilla-3272176a7b37b3bd30ef376f7b782f736d207cd4.tar.xz
Bug 819330: Bugzilla crashes when cloning a bug if the CC list is empty
r=dkl a=LpSolit
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r--Bugzilla/WebService/Bug.pm2
1 files changed, 1 insertions, 1 deletions
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') {