[Libreoffice-commits] .: extensions/source
Bjoern Michaelsen
bmichaelsen at kemper.freedesktop.org
Mon Apr 23 12:29:49 PDT 2012
extensions/source/bibliography/bibload.cxx | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
New commits:
commit 312e6b06dfeb707887953121b45d136ce45d5001
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date: Sat Apr 21 03:13:12 2012 +0200
lp#527938: triple paperbag -- tweak bibloader again
diff --git a/extensions/source/bibliography/bibload.cxx b/extensions/source/bibliography/bibload.cxx
index 9c84cdb..c5d3b13 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,
More information about the Libreoffice-commits
mailing list