pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1622925 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java
Date Sat, 06 Sep 2014 20:14:23 GMT
Author: jahewson
Date: Sat Sep  6 20:14:23 2014
New Revision: 1622925

URL: http://svn.apache.org/r1622925
Log:
PDFBOX-2317: Avoid potential NPE

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java?rev=1622925&r1=1622924&r2=1622925&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java Sat
Sep  6 20:14:23 2014
@@ -133,7 +133,7 @@ public abstract class PDSimpleFont exten
         }
 
         // assign the glyph list based on the font
-        if (getBaseFont().equals("ZapfDingbats"))
+        if ("ZapfDingbats".equals(getBaseFont()))
         {
             glyphList = GlyphList.ZAPF_DINGBATS;
         }



Mime
View raw message