summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-02 16:44:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-02 20:08:25 +0000
commit477a294e1d331046bd0c5e82fc32b5f0b4858469 (patch)
tree785af441131188098a395e76e3ecec89a236800d /sc
parent2630874bccd77c5f9c54ca930284b8bef471814c (diff)
coverity#1187830 Uncaught exception
Change-Id: I137af778b9b494c764071e3ae0b8010f080ef936
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/externalrefmgr.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx
index 2f3363a2d4d9..a41ee468e478 100644
--- a/sc/source/ui/docshell/externalrefmgr.cxx
+++ b/sc/source/ui/docshell/externalrefmgr.cxx
@@ -2238,7 +2238,13 @@ ScDocument* ScExternalRefManager::getSrcDocument(sal_uInt16 nFileId)
OUString aFilter;
SrcShell aSrcDoc;
- aSrcDoc.maShell = loadSrcDocument(nFileId, aFilter);
+ try
+ {
+ aSrcDoc.maShell = loadSrcDocument(nFileId, aFilter);
+ }
+ catch (const css::uno::Exception&)
+ {
+ }
if (!aSrcDoc.maShell.Is())
{
// source document could not be loaded.