diff options
-rw-r--r-- | oox/source/vml/vmlinputstream.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/oox/source/vml/vmlinputstream.cxx b/oox/source/vml/vmlinputstream.cxx index 70896e1952ff..f373bad0c0d1 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 ] = '>'; } |