pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1816178 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java
Date Thu, 23 Nov 2017 17:16:02 GMT
Author: tilman
Date: Thu Nov 23 17:16:02 2017
New Revision: 1816178

URL: http://svn.apache.org/viewvc?rev=1816178&view=rev
Log:
PDFBOX-4021: use fallback if font is null

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java?rev=1816178&r1=1816177&r2=1816178&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java
Thu Nov 23 17:16:02 2017
@@ -520,7 +520,7 @@ final class FontMapperImpl implements Fo
                     {
                         return new CIDFontMapping((OpenTypeFont)font, null, true);
                     }
-                    else
+                    else if (font != null)
                     {
                         return new CIDFontMapping(null, font, true);
                     }  



Mime
View raw message