summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-16 10:35:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-16 11:27:19 +0100
commit3a1abb6804c0012718e11dab15d4f35acdef243a (patch)
tree7abf1f2613bdcfbe1f69296ee17268069540b928 /svx
parentbfd22d4ba76df2ab3939339ddb5030f3c7082cb8 (diff)
coverity#707280 Uncaught exception
Change-Id: I764f6472903e6aebef55af1e96c4941e8429d18f
Diffstat (limited to 'svx')
-rw-r--r--svx/source/gallery2/galtheme.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx
index 5672d9fa9ee3..41f607cef232 100644
--- a/svx/source/gallery2/galtheme.cxx
+++ b/svx/source/gallery2/galtheme.cxx
@@ -652,11 +652,19 @@ void GalleryTheme::Actualize( const Link& rActualizeLink, GalleryProgress* pProg
sal_uIntPtr nStorErr = 0;
+ try
{
SvStorageRef aTempStorageRef( new SvStorage( false, aTmpURL.GetMainURL( INetURLObject::NO_DECODE ), STREAM_STD_READWRITE ) );
aSvDrawStorageRef->CopyTo( aTempStorageRef );
nStorErr = aSvDrawStorageRef->GetError();
}
+ catch (const css::ucb::ContentCreationException& e)
+ {
+ SAL_WARN("svx", "failed to open: "
+ << aTmpURL.GetMainURL(INetURLObject::NO_DECODE)
+ << "due to : " << e.Message);
+ nStorErr = ERRCODE_IO_GENERAL;
+ }
if( !nStorErr )
{