summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-06-20 15:02:37 +0200
committerMichael Stahl <mstahl@redhat.com>2013-06-20 17:01:32 +0200
commit32e2c6456fb3bf3bf75f9b11c90193c537b4ef26 (patch)
tree463358c85f854d7ba31ad30d1b6cbc97f32060f4 /svx
parent6f36e70795743690c59042e20f1c2059b00f84b7 (diff)
FmGridControl: handle non-existing properties
Fix crash with unhandled exception requesting "Description". Change-Id: I6b6cb61273fb042532ab63620729f4129239fe81
Diffstat (limited to 'svx')
-rw-r--r--svx/source/fmcomp/fmgridcl.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx
index ed3b2aa95177..4ea2577202a0 100644
--- a/svx/source/fmcomp/fmgridcl.cxx
+++ b/svx/source/fmcomp/fmgridcl.cxx
@@ -1908,7 +1908,14 @@ namespace
Reference<XPropertySet> xProp;
xIndex->getByIndex( _nPosition ) >>= xProp;
if ( xProp.is() )
- xProp->getPropertyValue( _sPropName ) >>= sRetText;
+ {
+ try {
+ xProp->getPropertyValue( _sPropName ) >>= sRetText;
+ } catch (UnknownPropertyException const& e) {
+ SAL_WARN("svx.form",
+ "exception caught: " << e.Message);
+ }
+ }
}
}
return sRetText;