From 9dc4a1273e54de8083aba4be94700e02467dc1f2 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Mon, 19 Feb 2007 22:22:03 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20289627:=20Chart=20report=20crashes=20when?= =?UTF-8?q?=20there=20is=20no=20series=20data=20to=20plot=20-=20Patch=20by?= =?UTF-8?q?=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20r=3Dgerv=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@220560 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/Chart.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mozilla/webtools/bugzilla/Bugzilla/Chart.pm b/mozilla/webtools/bugzilla/Bugzilla/Chart.pm index 729120e8e9c..9701f7b32de 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Chart.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Chart.pm @@ -218,6 +218,8 @@ sub readData { # We need to handle errors better. my $series_ids = join(",", $self->getSeriesIDs()); + return [] unless $series_ids; + # Work out the date boundaries for our data. my $dbh = Bugzilla->dbh;