diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2012-04-21 03:13:12 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2012-04-23 21:27:44 +0200 |
commit | 312e6b06dfeb707887953121b45d136ce45d5001 (patch) | |
tree | 59c0c0e76844d660e02cc8ed5d2045102957167a /extensions | |
parent | 9c99dac0968c405537cd6094a46c7f6de01ccc4e (diff) |
lp#527938: triple paperbag -- tweak bibloader again
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, |