summaryrefslogtreecommitdiff
path: root/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-04-18 12:21:40 +0000
committerRüdiger Timm <rt@openoffice.org>2008-04-18 12:21:40 +0000
commit2603650461881352193d202a808c480c9af38e13 (patch)
treef61275305223853ba2db6711e80cf135ecfe1b3b /chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx
parentad6456a55260b611555e90855417ae4ed40d34c1 (diff)
INTEGRATION: CWS xmlfilter04 (1.5.80); FILE MERGED
2008/03/03 16:56:29 dr 1.5.80.1: check xInnerPropertySet to avoid crash
Diffstat (limited to 'chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx')
-rw-r--r--chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx b/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx
index 7fd9d0853942..7e2c08de6972 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: WrappedNumberFormatProperty.cxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
* This file is part of OpenOffice.org.
*
@@ -173,6 +173,11 @@ void WrappedLinkNumberFormatProperty::setPropertyValue( const Any& rOuterValue,
Any WrappedLinkNumberFormatProperty::getPropertyValue( const Reference< beans::XPropertySet >& xInnerPropertySet ) const
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
+ if( !xInnerPropertySet.is() )
+ {
+ DBG_ERROR("missing xInnerPropertySet in WrappedNumberFormatProperty::getPropertyValue");
+ return Any( false );
+ }
bool bLink = ! xInnerPropertySet->getPropertyValue( C2U("NumberFormat" )).hasValue();
return uno::makeAny( bLink );
}