diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/CharacterRun.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/CharacterRun.java index 3b3898e6fc..02068d0471 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/CharacterRun.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/CharacterRun.java @@ -426,6 +426,10 @@ public final class CharacterRun public String getFontName() { + if (_doc.getFontTable() == null) + // old word format + return null; + return _doc.getFontTable().getMainFont(_props.getFtcAscii()); }