pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1775307 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceCharacteristicsDictionary.java
Date Tue, 20 Dec 2016 15:26:16 GMT
Author: tilman
Date: Tue Dec 20 15:26:16 2016
New Revision: 1775307

URL: http://svn.apache.org/viewvc?rev=1775307&view=rev
Log:
PDFBOX-3638: return null if color array hasn't 1, 3 or 4 elements

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceCharacteristicsDictionary.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceCharacteristicsDictionary.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceCharacteristicsDictionary.java?rev=1775307&r1=1775306&r2=1775307&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceCharacteristicsDictionary.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceCharacteristicsDictionary.java
Tue Dec 20 15:26:16 2016
@@ -242,7 +242,7 @@ public class PDAppearanceCharacteristics
                 colorSpace = PDDeviceCMYK.INSTANCE;
                 break;
             default:
-                break;
+                return null;
             }
             return new PDColor((COSArray) c, colorSpace);
         }



Mime
View raw message