Skip to content

Commit

Permalink
fixing a NPE in GetSymbolFont
Browse files Browse the repository at this point in the history
  • Loading branch information
tohidemyname committed Jul 2, 2024
1 parent c36964d commit 248c1aa
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 248c1aa

Please sign in to comment.