From e16416841884b6bf3b188fa9f6fed2ea7c5e30e0 Mon Sep 17 00:00:00 2001 From: Elena Subbotina Date: Wed, 3 Jul 2024 15:07:35 +0300 Subject: [PATCH] fix bug #68971 --- MsBinaryFile/DocFile/CharacterPropertiesMapping.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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