pdfbox-commits mailing list archives

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

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

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

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetMatrix.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetMatrix.java?rev=1783126&r1=1783125&r2=1783126&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetMatrix.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/state/SetMatrix.java
Wed Feb 15 17:40:06 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