pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1783125 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetMatrix.java
Date Wed, 15 Feb 2017 17:40:01 GMT
Author: tilman
Date: Wed Feb 15 17:40:00 2017
New Revision: 1783125

URL: http://svn.apache.org/viewvc?rev=1783125&view=rev
Log:
PDFBOX-3685: avoid ClassCastException

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetMatrix.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetMatrix.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetMatrix.java?rev=1783125&r1=1783124&r2=1783125&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetMatrix.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetMatrix.java
Wed Feb 15 17:40:00 2017
@@ -39,7 +39,11 @@ public class SetMatrix extends OperatorP
         {
             throw new MissingOperandException(operator, arguments);
         }
-        
+        if (!checkArrayTypesClass(arguments, COSNumber.class))
+        {
+            return;
+        }
+
         COSNumber a = (COSNumber)arguments.get( 0 );
         COSNumber b = (COSNumber)arguments.get( 1 );
         COSNumber c = (COSNumber)arguments.get( 2 );



Mime
View raw message