summaryrefslogtreecommitdiff
path: root/chart2/source/tools/ChartModelHelper.cxx
diff options
context:
space:
mode:
authorIngrid Halama <iha@openoffice.org>2003-11-10 18:33:21 +0000
committerIngrid Halama <iha@openoffice.org>2003-11-10 18:33:21 +0000
commitc6a045fec4d4eacd1e96e1653a572c7a74023d32 (patch)
tree933985e349ef17219f8f19902f3e38b1f60d441a /chart2/source/tools/ChartModelHelper.cxx
parent646eebdde7ae80069266c15d1b0587e6f77a858e (diff)
react on NULL input
Diffstat (limited to 'chart2/source/tools/ChartModelHelper.cxx')
-rw-r--r--chart2/source/tools/ChartModelHelper.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/chart2/source/tools/ChartModelHelper.cxx b/chart2/source/tools/ChartModelHelper.cxx
index 7c4939cd4f6d..44ba48f9f68e 100644
--- a/chart2/source/tools/ChartModelHelper.cxx
+++ b/chart2/source/tools/ChartModelHelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ChartModelHelper.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: iha $ $Date: 2003-11-08 22:52:24 $
+ * last change: $Author: iha $ $Date: 2003-11-10 19:33:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -216,6 +216,8 @@ uno::Reference< XChartType > ChartModelHelper::getChartTypeOfSeries(
//iterate through the nmodel to find the given xSeries in the tree
//the found parent indicates the charttype
+ if( !xGivenDataSeries.is() )
+ return xRet;
uno::Reference< XDiagram > xDiagram = ChartModelHelper::findDiagram( xModel );
if(!xDiagram.is())
return xRet;