summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stgio.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source/sdstor/stgio.cxx')
-rw-r--r--sot/source/sdstor/stgio.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/sot/source/sdstor/stgio.cxx b/sot/source/sdstor/stgio.cxx
index 7d90c490c634..c4294924697a 100644
--- a/sot/source/sdstor/stgio.cxx
+++ b/sot/source/sdstor/stgio.cxx
@@ -55,7 +55,17 @@ bool StgIo::Load()
{
if( GetStrm() )
{
- if( m_aHdr.Load( *this ) )
+ bool bLoaded;
+ try
+ {
+ bLoaded = m_aHdr.Load(*this);
+ }
+ catch (const SvStreamEOFException&)
+ {
+ SAL_WARN("sot", "EOF");
+ bLoaded = false;
+ }
+ if (bLoaded)
{
if( m_aHdr.Check() )
SetupStreams();