diff options
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/bibliography/bibload.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/extensions/source/bibliography/bibload.cxx b/extensions/source/bibliography/bibload.cxx index 9c84cdbfb348..c5d3b1367df9 100644 --- a/extensions/source/bibliography/bibload.cxx +++ b/extensions/source/bibliography/bibload.cxx @@ -248,9 +248,16 @@ namespace // lp#527938, debian#602953, fdo#33266, i#105408 static bool lcl_isBaseAvailable() { - Reference< XMultiServiceFactory > xMgr = comphelper::getProcessServiceFactory(); - Reference< XAggregation > xAggregate = Reference< XAggregation >( xMgr->createInstance(C2U("com.sun.star.sdbc.RowSet")), UNO_QUERY); - return xAggregate.is(); + try + { + Reference< XMultiServiceFactory > xMgr = comphelper::getProcessServiceFactory(); + Reference< XAggregation > xAggregate = Reference< XAggregation >( xMgr->createInstance(C2U("com.sun.star.sdb.RowSet")), UNO_QUERY); + return xAggregate.is(); + } + catch(...) + { + return false; + } } } void BibliographyLoader::load(const Reference< XFrame > & rFrame, const rtl::OUString& rURL, |