mirror of https://github.com/apache/poi.git
fix NPE
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1145630 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
585c3d0e6f
commit
baa1a12d2b
|
@ -4,7 +4,7 @@ public class DefaultFontReplacer implements FontReplacer
|
||||||
{
|
{
|
||||||
public Triplet update( Triplet original )
|
public Triplet update( Triplet original )
|
||||||
{
|
{
|
||||||
if ( !AbstractWordUtils.isNotEmpty( original.fontName ) )
|
if ( AbstractWordUtils.isNotEmpty( original.fontName ) )
|
||||||
{
|
{
|
||||||
String fontName = original.fontName;
|
String fontName = original.fontName;
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ public class DefaultFontReplacer implements FontReplacer
|
||||||
original.fontName = fontName;
|
original.fontName = fontName;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !AbstractWordUtils.isNotEmpty( original.fontName ) )
|
if ( AbstractWordUtils.isNotEmpty( original.fontName ) )
|
||||||
{
|
{
|
||||||
if ( "Times Regular".equals( original.fontName )
|
if ( "Times Regular".equals( original.fontName )
|
||||||
|| "Times-Regular".equals( original.fontName ) )
|
|| "Times-Regular".equals( original.fontName ) )
|
||||||
|
|
Loading…
Reference in New Issue