poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1145630 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/DefaultFontReplacer.java
Date Tue, 12 Jul 2011 15:19:17 GMT
Author: sergey
Date: Tue Jul 12 15:19:17 2011
New Revision: 1145630

URL: http://svn.apache.org/viewvc?rev=1145630&view=rev
Log:
fix NPE

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/DefaultFontReplacer.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/DefaultFontReplacer.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/DefaultFontReplacer.java?rev=1145630&r1=1145629&r2=1145630&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/DefaultFontReplacer.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/DefaultFontReplacer.java Tue
Jul 12 15:19:17 2011
@@ -4,7 +4,7 @@ public class DefaultFontReplacer impleme
 {
     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 impleme
             original.fontName = fontName;
         }
 
-        if ( !AbstractWordUtils.isNotEmpty( original.fontName ) )
+        if ( AbstractWordUtils.isNotEmpty( original.fontName ) )
         {
             if ( "Times Regular".equals( original.fontName )
                     || "Times-Regular".equals( original.fontName ) )



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message