summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-26 23:51:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-27 09:21:49 +0100
commit08790c82c37866ab790d8a2503cbb4ceef4cf626 (patch)
treee2334f94a8cf171938e26a2c121ea63d8ce222c4 /connectivity
parentc634d8081c9d6110ee2f74be37b7f7394884a40f (diff)
Related: fdo#35404 survive nil xTable
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/dbtools.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx
index b11657fcc89e..053cc61161f2 100644
--- a/connectivity/source/commontools/dbtools.cxx
+++ b/connectivity/source/commontools/dbtools.cxx
@@ -1422,7 +1422,9 @@ namespace
::rtl::OUString& _out_rCatalog, ::rtl::OUString& _out_rSchema, ::rtl::OUString& _out_rName )
{
::dbtools::OPropertyMap& rPropMap = OMetaConnection::getPropMap();
- Reference< XPropertySetInfo > xInfo = _xTable->getPropertySetInfo();
+ Reference< XPropertySetInfo > xInfo;
+ if (_xTable.is())
+ xInfo = _xTable->getPropertySetInfo();
if ( xInfo.is()
&& xInfo->hasPropertyByName(rPropMap.getNameByIndex(PROPERTY_ID_NAME)) )
{