summaryrefslogtreecommitdiff
path: root/writerperfect/source/common/WPXSvInputStream.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-08-13 11:35:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-08-13 19:36:37 +0200
commitade52eb721524e3717f47ccd97e0aa2018b96cb0 (patch)
tree7293c6b5bf077d14479ca3f714cf0a1942d1f709 /writerperfect/source/common/WPXSvInputStream.cxx
parentcd72aca086ff84467d51f6864c58648c3322c53f (diff)
use less exception throwing for flow control
Change-Id: I7ad023479229f89918e588eb8dc7431b5830b45d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171813 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerperfect/source/common/WPXSvInputStream.cxx')
-rw-r--r--writerperfect/source/common/WPXSvInputStream.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/writerperfect/source/common/WPXSvInputStream.cxx b/writerperfect/source/common/WPXSvInputStream.cxx
index a43acba44cc6..a22c94a8b3e5 100644
--- a/writerperfect/source/common/WPXSvInputStream.cxx
+++ b/writerperfect/source/common/WPXSvInputStream.cxx
@@ -369,7 +369,9 @@ Reference<XInputStream> ZipStorageImpl::createStream(const OUString& rPath)
try
{
- const Reference<XInputStream> xInputStream(mxContainer->getByName(rPath), UNO_QUERY_THROW);
+ const Reference<XInputStream> xInputStream(mxContainer->getByName(rPath), UNO_QUERY);
+ if (!xInputStream)
+ return xStream;
const Reference<XSeekable> xSeekable(xInputStream, UNO_QUERY);
if (xSeekable.is())