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];
                 }


Reply via email to