pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1825084 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java
Date Thu, 22 Feb 2018 17:46:55 GMT
Author: msahyoun
Date: Thu Feb 22 17:46:55 2018
New Revision: 1825084

URL: http://svn.apache.org/viewvc?rev=1825084&view=rev
Log:
PDFBOX-4122: add null test for nameArray

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java?rev=1825084&r1=1825083&r2=1825084&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java Thu Feb
22 17:46:55 2018
@@ -111,7 +111,7 @@ public class PostScriptTable extends TTF
                 {
                     glyphNames[i] = WGL4Names.MAC_GLYPH_NAMES[index];
                 }
-                else if (index >= WGL4Names.NUMBER_OF_MAC_GLYPHS && index <=
32767)
+                else if (index >= WGL4Names.NUMBER_OF_MAC_GLYPHS && index <=
32767 && nameArray != null)
                 {
                     glyphNames[i] = nameArray[index - WGL4Names.NUMBER_OF_MAC_GLYPHS];
                 }



Mime
View raw message