diff --git a/MsBinaryFile/DocFile/CharacterPropertiesMapping.cpp b/MsBinaryFile/DocFile/CharacterPropertiesMapping.cpp index b83fc9658d..e7e1793cbd 100644 --- a/MsBinaryFile/DocFile/CharacterPropertiesMapping.cpp +++ b/MsBinaryFile/DocFile/CharacterPropertiesMapping.cpp @@ -586,7 +586,9 @@ namespace DocFileFormat if ( _styleChpx ) { StyleSheetDescription* thisStyle = _doc->Styles->Styles->at( styleId ); - styleId = (unsigned short)thisStyle->istdBase; + + if (thisStyle) + styleId = (unsigned short)thisStyle->istdBase; } //build the style hierarchy