summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-11-25 11:16:29 +0100
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-11-25 11:17:45 +0100
commit65be3e7908f21355fc8cc443192338d1cc8a8d61 (patch)
tree9b8bd023615a65d2ffa76910388b5051528f384f /oox
parentf95052c29b076995a54b1d3f7c0becf35ebcd23f (diff)
Docx crasher: there may be no External Header for pictures.
Diffstat (limited to 'oox')
-rw-r--r--oox/source/helper/graphichelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/helper/graphichelper.cxx b/oox/source/helper/graphichelper.cxx
index fd3046e025bb..6ddb9860554c 100644
--- a/oox/source/helper/graphichelper.cxx
+++ b/oox/source/helper/graphichelper.cxx
@@ -257,7 +257,7 @@ Reference< XGraphic > GraphicHelper::importGraphic( const Reference< XInputStrea
aArgs[ 0 ].Name = CREATE_OUSTRING( "InputStream" );
aArgs[ 0 ].Value <<= rxInStrm;
- if ( pExtHeader->mapMode > 0 )
+ if ( pExtHeader && pExtHeader->mapMode > 0 )
{
aArgs.realloc( aArgs.getLength() + 1 );
Sequence< PropertyValue > aFilterData( 3 );