summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-07-27 21:43:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-07-27 21:43:22 +0100
commitd4cb9c3a8851cb874fd8b6c77d4d7521da7579b7 (patch)
tree1ea1a0d2a731740dc7d24d040fec7c35f54a6301 /sfx2
parent01c12dd928f6d0e65d458295c3863314e8483269 (diff)
temp tinderbox fix
Change-Id: Id233762e6b8547078544c55b2932462a10749882
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/docfile.cxx22
1 files changed, 15 insertions, 7 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 7af4a7795844..a77589bd0630 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -416,16 +416,24 @@ Reference < XContent > SfxMedium::GetContent() const
if ( !pImpl->aContent.get().is() )
{
Reference < css::ucb::XContent > xContent;
+ Reference < css::ucb::XCommandEnvironment > xEnv;
- // tdf#95144 add a default css::ucb::XCommandEnvironment
- // in order to have http and https protocol manage certificates correctly
- css:: uno::Reference< task::XInteractionHandler > xIH(
- css::task::InteractionHandler::createWithParent( comphelper::getProcessComponentContext(), nullptr ) );
+ try
+ {
+ // tdf#95144 add a default css::ucb::XCommandEnvironment
+ // in order to have http and https protocol manage certificates correctly
+ css:: uno::Reference< task::XInteractionHandler > xIH(
+ css::task::InteractionHandler::createWithParent( comphelper::getProcessComponentContext(), nullptr ) );
- css::uno::Reference< css::ucb::XProgressHandler > xProgress;
- ::ucbhelper::CommandEnvironment* pCommandEnv = new ::ucbhelper::CommandEnvironment(new comphelper::SimpleFileAccessInteraction( xIH ), xProgress);
+ css::uno::Reference< css::ucb::XProgressHandler > xProgress;
+ ::ucbhelper::CommandEnvironment* pCommandEnv = new ::ucbhelper::CommandEnvironment(new comphelper::SimpleFileAccessInteraction( xIH ), xProgress);
- Reference < css::ucb::XCommandEnvironment > xEnv(static_cast< css::ucb::XCommandEnvironment* >(pCommandEnv), css::uno::UNO_QUERY);
+ xEnv = Reference < css::ucb::XCommandEnvironment >(static_cast< css::ucb::XCommandEnvironment* >(pCommandEnv), css::uno::UNO_QUERY);
+ }
+ catch(...)
+ {
+ //temp tinderbox fix
+ }
const SfxUnoAnyItem* pItem = SfxItemSet::GetItem<SfxUnoAnyItem>(pImpl->m_pSet, SID_CONTENT, false);
if ( pItem )