mirror of https://github.com/apache/poi.git
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:
parent
91eb4861b7
commit
e4b70720be
|
@ -858,7 +858,8 @@ public class XSLFTextParagraph implements TextParagraph<XSLFShape,XSLFTextParagr
|
|||
|
||||
@Override
|
||||
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
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue