mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
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
89494004ed
commit
73fe53c0be
@ -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());
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user