pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1713470 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType3Font.java
Date Mon, 09 Nov 2015 16:18:01 GMT
Author: tilman
Date: Mon Nov  9 16:18:01 2015
New Revision: 1713470

URL: http://svn.apache.org/viewvc?rev=1713470&view=rev
Log:
PDFBOX-3076: forgot null check

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType3Font.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType3Font.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType3Font.java?rev=1713470&r1=1713469&r2=1713470&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType3Font.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType3Font.java Mon
Nov  9 16:18:01 2015
@@ -280,6 +280,10 @@ public class PDType3Font extends PDSimpl
                     try
                     {
                         PDRectangle glyphBBox = charProc.getGlyphBBox();
+                        if (glyphBBox == null)
+                        {
+                            continue;
+                        }
                         rect.setLowerLeftX(Math.min(rect.getLowerLeftX(), glyphBBox.getLowerLeftX()));
                         rect.setLowerLeftY(Math.min(rect.getLowerLeftY(), glyphBBox.getLowerLeftY()));
                         rect.setUpperRightX(Math.max(rect.getUpperRightX(), glyphBBox.getUpperRightX()));



Mime
View raw message