diff options
-rw-r--r-- | starmath/source/cfgitem.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx index 12f03e73e038..5206f0286d25 100644 --- a/starmath/source/cfgitem.cxx +++ b/starmath/source/cfgitem.cxx @@ -752,7 +752,11 @@ void SmMathConfig::SaveFontFormatList() for (size_t i = 0; i < nCount; ++i) { OUString aFntFmtId( rFntFmtList.GetFontFormatId( i ) ); - const SmFontFormat aFntFmt( *rFntFmtList.GetFontFormat( aFntFmtId ) ); + const SmFontFormat *pFntFmt = rFntFmtList.GetFontFormat( aFntFmtId ); + assert(pFntFmt); + if (!pFntFmt) + continue; + const SmFontFormat aFntFmt( *pFntFmt ); OUString aNodeNameDelim( FONT_FORMAT_LIST ); aNodeNameDelim += aDelim; |