workaround NullPointerException when font family (of bullets) can't be determined

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884974 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2020-12-30 23:33:05 +00:00
parent 91eb4861b7
commit e4b70720be
2 changed files with 2 additions and 1 deletions

View File

@ -858,7 +858,8 @@ public class XSLFTextParagraph implements TextParagraph<XSLFShape,XSLFTextParagr
@Override @Override
public String getDefaultFontFamily() { public String getDefaultFontFamily() {
return (_runs.isEmpty() ? "Arial" : _runs.get(0).getFontFamily()); String family = (_runs.isEmpty() ? null : _runs.get(0).getFontFamily());
return (family == null) ? "Arial" : family;
} }
@Override @Override

Binary file not shown.