Author: jahewson Date: Tue Aug 26 21:23:00 2014 New Revision: 1620739 URL: http://svn.apache.org/r1620739 Log: PDFBOX-2262: fix for null Unicode names
Modified: pdfbox/branches/no-awt/pdfbox/src/main/java/org/apache/pdfbox/encoding/GlyphList.java Modified: pdfbox/branches/no-awt/pdfbox/src/main/java/org/apache/pdfbox/encoding/GlyphList.java URL: http://svn.apache.org/viewvc/pdfbox/branches/no-awt/pdfbox/src/main/java/org/apache/pdfbox/encoding/GlyphList.java?rev=1620739&r1=1620738&r2=1620739&view=diff ============================================================================== --- pdfbox/branches/no-awt/pdfbox/src/main/java/org/apache/pdfbox/encoding/GlyphList.java (original) +++ pdfbox/branches/no-awt/pdfbox/src/main/java/org/apache/pdfbox/encoding/GlyphList.java Tue Aug 26 21:23:00 2014 @@ -141,6 +141,11 @@ public class GlyphList */ public static String toUnicode(String name) { + if (name == null) + { + return null; + } + String unicode = NAME_TO_UNICODE.get(name); if (unicode == null) {