diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-26 23:51:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-27 09:21:49 +0100 |
commit | 08790c82c37866ab790d8a2503cbb4ceef4cf626 (patch) | |
tree | e2334f94a8cf171938e26a2c121ea63d8ce222c4 /connectivity | |
parent | ditch empty .cxx file (diff) | |
download | core-08790c82c37866ab790d8a2503cbb4ceef4cf626.tar.gz core-08790c82c37866ab790d8a2503cbb4ceef4cf626.zip |
Related: fdo#35404 survive nil xTable
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/dbtools.cxx | 4 |
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)) ) { |