pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1832189 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java
Date Thu, 24 May 2018 17:12:59 GMT
Author: tilman
Date: Thu May 24 17:12:59 2018
New Revision: 1832189

URL: http://svn.apache.org/viewvc?rev=1832189&view=rev
Log:
PDFBOX-4230: avoid NPE, as suggested by Edi Weissmann

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

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java?rev=1832189&r1=1832188&r2=1832189&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java Thu May 24
17:12:59 2018
@@ -45,7 +45,7 @@ public class CmapSubtable implements Cma
     private long subTableOffset;
     private int[] glyphIdToCharacterCode;
     private final Map<Integer, List<Integer>> glyphIdToCharacterCodeMultiple
= new HashMap<>();
-    private Map<Integer, Integer> characterCodeToGlyphId;
+    private Map<Integer, Integer> characterCodeToGlyphId = new HashMap<>();
 
     /**
      * This will read the required data from the stream.



Mime
View raw message