summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
Diffstat (limited to 'oox')
-rw-r--r--oox/source/vml/vmldrawing.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/oox/source/vml/vmldrawing.cxx b/oox/source/vml/vmldrawing.cxx
index 058ee5c91815..53c1e6aeed42 100644
--- a/oox/source/vml/vmldrawing.cxx
+++ b/oox/source/vml/vmldrawing.cxx
@@ -155,7 +155,9 @@ void Drawing::convertAndInsert() const
{
try
{
- Reference< XControlShape > xCtrlShape( xShapes->getByIndex(i), UNO_QUERY_THROW );
+ Reference< XControlShape > xCtrlShape( xShapes->getByIndex(i), UNO_QUERY );
+ if (!xCtrlShape.is())
+ continue;
Reference< XControlModel > xCtrlModel( xCtrlShape->getControl(), UNO_SET_THROW );
Reference< XServiceInfo > xModelSI (xCtrlModel, UNO_QUERY_THROW );
Reference< XPropertySet > aProps( xCtrlModel, UNO_QUERY_THROW );