Skip to content

Commit

Permalink
Merge pull request #1374 from tohidemyname/fixNPEofGetSymbolFont
Browse files Browse the repository at this point in the history
fixing a NPE in GetSymbolFont
  • Loading branch information
tonyqus authored Jul 19, 2024
2 parents 70f4f97 + 248c1aa commit 9eca322
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scratchpad/HWPF/UserModel/CharacterRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,10 @@ public Ffn GetSymbolFont()
{
if (IsSymbol())
{
if(_doc.GetFontTable() == null)
{
return null;
}
Ffn[] fontNames = _doc.GetFontTable().GetFontNames();

if (fontNames.Length <= _props.GetFtcSym())
Expand Down

0 comments on commit 9eca322

Please # to comment.