You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ja...@apache.org on 2014/08/26 23:23:00 UTC
svn commit: r1620739 -
/pdfbox/branches/no-awt/pdfbox/src/main/java/org/apache/pdfbox/encoding/GlyphList.java
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)
{