Kaydet (Commit) 95d02814 authored tarafından Caolán McNamara's avatar Caolán McNamara

catch exception for disable-database-connectivity case

Change-Id: I39da810c4f44b8bbb7250aad17fb12ce5420a000
Reviewed-on: https://gerrit.libreoffice.org/46117Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 7459a283
......@@ -60,6 +60,7 @@
#include <com/sun/star/awt/XImageConsumer.hpp>
#include <com/sun/star/awt/ImageStatus.hpp>
#include <com/sun/star/form/XImageProducerSupplier.hpp>
#include <com/sun/star/lang/ServiceNotRegisteredException.hpp>
#include <com/sun/star/form/XForm.hpp>
#include <doc.hxx>
#include <IDocumentLayoutAccess.hxx>
......@@ -1299,8 +1300,14 @@ void SwHTMLParser::NewForm( bool bAppend )
if( !rSrvcMgr.is() )
return;
uno::Reference< XInterface > xInt = rSrvcMgr->createInstance(
"com.sun.star.form.component.Form" );
uno::Reference< XInterface > xInt;
try
{
xInt = rSrvcMgr->createInstance("com.sun.star.form.component.Form");
}
catch (const css::lang::ServiceNotRegisteredException&)
{
}
if( !xInt.is() )
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment