workaround for NPE caused by old Word format
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1142762 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ed7c3eeb07
commit
1c0d6a5d09
@ -426,6 +426,10 @@ public final class CharacterRun
|
|||||||
|
|
||||||
public String getFontName()
|
public String getFontName()
|
||||||
{
|
{
|
||||||
|
if (_doc.getFontTable() == null)
|
||||||
|
// old word format
|
||||||
|
return null;
|
||||||
|
|
||||||
return _doc.getFontTable().getMainFont(_props.getFtcAscii());
|
return _doc.getFontTable().getMainFont(_props.getFtcAscii());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user