From f79348fee95da128d71cd986d3d291243ab4c2cc Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Tue, 12 Jul 2011 15:19:17 +0000 Subject: [PATCH] fix NPE git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1145630 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hwpf/converter/DefaultFontReplacer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/converter/DefaultFontReplacer.java b/src/scratchpad/src/org/apache/poi/hwpf/converter/DefaultFontReplacer.java index b99816e6d..7f9f34a8c 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/converter/DefaultFontReplacer.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/converter/DefaultFontReplacer.java @@ -4,7 +4,7 @@ public class DefaultFontReplacer implements FontReplacer { public Triplet update( Triplet original ) { - if ( !AbstractWordUtils.isNotEmpty( original.fontName ) ) + if ( AbstractWordUtils.isNotEmpty( original.fontName ) ) { String fontName = original.fontName; @@ -34,7 +34,7 @@ public class DefaultFontReplacer implements FontReplacer original.fontName = fontName; } - if ( !AbstractWordUtils.isNotEmpty( original.fontName ) ) + if ( AbstractWordUtils.isNotEmpty( original.fontName ) ) { if ( "Times Regular".equals( original.fontName ) || "Times-Regular".equals( original.fontName ) )