pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1864551 - /pdfbox/branches/issue45/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java
Date Tue, 06 Aug 2019 18:54:03 GMT
Author: tilman
Date: Tue Aug  6 18:54:03 2019
New Revision: 1864551

URL: http://svn.apache.org/viewvc?rev=1864551&view=rev
Log:
PDFBOX-4622: avoid NPE

Modified:
    pdfbox/branches/issue45/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java

Modified: pdfbox/branches/issue45/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java?rev=1864551&r1=1864550&r2=1864551&view=diff
==============================================================================
--- pdfbox/branches/issue45/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java
(original)
+++ pdfbox/branches/issue45/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java
Tue Aug  6 18:54:03 2019
@@ -280,6 +280,7 @@ public class CmapSubtable implements Cma
     protected void processSubtype13(TTFDataStream data, int numGlyphs) throws IOException
     {
         long nbGroups = data.readUnsignedInt();
+        glyphIdToCharacterCode = newGlyphIdToCharacterCode(numGlyphs);
         characterCodeToGlyphId = new HashMap<Integer, Integer>(numGlyphs);
         for (long i = 0; i < nbGroups; ++i)
         {



Mime
View raw message