pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1861590 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/xobject/PDJpeg.java
Date Tue, 18 Jun 2019 16:39:10 GMT
Author: tilman
Date: Tue Jun 18 16:39:10 2019
New Revision: 1861590

URL: http://svn.apache.org/viewvc?rev=1861590&view=rev
Log:
PDFBOX-4071: improve exception message

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/xobject/PDJpeg.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/xobject/PDJpeg.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/xobject/PDJpeg.java?rev=1861590&r1=1861589&r2=1861590&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/xobject/PDJpeg.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/xobject/PDJpeg.java
Tue Jun 18 16:39:10 2019
@@ -130,7 +130,8 @@ public class PDJpeg extends PDXObjectIma
             }
             else
             {
-                throw new IllegalStateException("");
+                throw new IllegalStateException("Image must have 1 or 3 color components,
this one has " +
+                        image.getColorModel().getNumComponents());
             }
         }
         setHeight( image.getHeight() );



Mime
View raw message