summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oox/source/vml/vmlinputstream.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/oox/source/vml/vmlinputstream.cxx b/oox/source/vml/vmlinputstream.cxx
index 48d0a3c42987..34336a5dcaca 100644
--- a/oox/source/vml/vmlinputstream.cxx
+++ b/oox/source/vml/vmlinputstream.cxx
@@ -266,6 +266,8 @@ InputStream::InputStream( const Reference< XComponentContext >& rxContext, const
maClosingCData( CREATE_OSTRING( "]]>" ) ),
mnBufferPos( 0 )
{
+ if (!mxTextStrm.is())
+ throw IOException();
maOpeningBracket[ 0 ] = '<';
maClosingBracket[ 0 ] = '>';
}