You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2019/07/04 16:36:34 UTC
svn commit: r1862568 -
/pdfbox/branches/issue45/preflight/src/main/java/org/apache/pdfbox/preflight/graphic/StandardColorSpaceHelper.java
Author: tilman
Date: Thu Jul 4 16:36:33 2019
New Revision: 1862568
URL: http://svn.apache.org/viewvc?rev=1862568&view=rev
Log:
PDFBOX-4592: refactor, colorants is never null
Modified:
pdfbox/branches/issue45/preflight/src/main/java/org/apache/pdfbox/preflight/graphic/StandardColorSpaceHelper.java
Modified: pdfbox/branches/issue45/preflight/src/main/java/org/apache/pdfbox/preflight/graphic/StandardColorSpaceHelper.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/preflight/src/main/java/org/apache/pdfbox/preflight/graphic/StandardColorSpaceHelper.java?rev=1862568&r1=1862567&r2=1862568&view=diff
==============================================================================
--- pdfbox/branches/issue45/preflight/src/main/java/org/apache/pdfbox/preflight/graphic/StandardColorSpaceHelper.java (original)
+++ pdfbox/branches/issue45/preflight/src/main/java/org/apache/pdfbox/preflight/graphic/StandardColorSpaceHelper.java Thu Jul 4 16:36:33 2019
@@ -308,15 +308,12 @@ public class StandardColorSpaceHelper im
if (attr != null)
{
final Map<String, PDSeparation> colorants = attr.getColorants();
- if (colorants != null)
+ numberOfColorants = colorants.size();
+ for (PDSeparation col : colorants.values())
{
- numberOfColorants = colorants.size();
- for (PDSeparation col : colorants.values())
+ if (col != null)
{
- if (col != null)
- {
- processAllColorSpace(col);
- }
+ processAllColorSpace(col);
}
}
PDDeviceNProcess process = attr.getProcess();