diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 68cfc3a79da2..3d2a7dc5b98a 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -6116,7 +6116,7 @@ sal_Bool SvxMSDffManager::GetShape(sal_uLong nId, SdrObject*& rpShape, // restore old alte FilePos of the stream(s) rStCtrl.Seek( nOldPosCtrl ); - if( &rStCtrl != pStData ) + if( &rStCtrl != pStData && pStData ) pStData->Seek( nOldPosData ); return ( 0 != rpShape ); }