summaryrefslogtreecommitdiff
path: root/svx/source/xml/xmlxtimp.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-08-13 13:43:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-08-14 18:05:59 +0200
commitece0729e18b4b306933439d1a329df192fc504d3 (patch)
tree65d9c2e48d1c9e8bf7cc1c8057c105c10de11695 /svx/source/xml/xmlxtimp.cxx
parent52d0e53fa8a90b51332f5db9702816cd294dbaa6 (diff)
use less exception throwing for flow control
Change-Id: Ib376a1bcb75e72d6e5754818a353b0d9c7dbd26d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171851 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/xml/xmlxtimp.cxx')
-rw-r--r--svx/source/xml/xmlxtimp.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/xml/xmlxtimp.cxx b/svx/source/xml/xmlxtimp.cxx
index a6d2b80194b4..a2ce48ddc713 100644
--- a/svx/source/xml/xmlxtimp.cxx
+++ b/svx/source/xml/xmlxtimp.cxx
@@ -476,8 +476,9 @@ bool SvxXMLXTableImport::load( const OUString &rPath, const OUString &rReferer,
try
{
- uno::Reference< io::XSeekable > xSeek( aParserInput.aInputStream, uno::UNO_QUERY_THROW );
- xSeek->seek( 0 );
+ uno::Reference< io::XSeekable > xSeek( aParserInput.aInputStream, uno::UNO_QUERY );
+ if (xSeek)
+ xSeek->seek( 0 );
}
catch (const uno::Exception&)
{