pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1764153 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
Date Mon, 10 Oct 2016 17:12:12 GMT
Author: tilman
Date: Mon Oct 10 17:12:12 2016
New Revision: 1764153

URL: http://svn.apache.org/viewvc?rev=1764153&view=rev
Log:
PDFBOX-3000: avoid NPE if softmask /G entry missing

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java?rev=1764153&r1=1764152&r2=1764153&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java Mon Oct
10 17:12:12 2016
@@ -421,7 +421,7 @@ public class PageDrawer extends PDFGraph
     //TODO: move soft mask apply to getPaint()?
     private Paint applySoftMaskToPaint(Paint parentPaint, PDSoftMask softMask) throws IOException
     {
-        if (softMask == null)
+        if (softMask == null || softMask.getGroup() == null)
         {
             return parentPaint;
         }



Mime
View raw message