You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2010/02/07 17:06:27 UTC
[jira] Closed: (PDFBOX-589) Arg list is optional for some color
seperations. However, code expects it to be set and causes a null pointer
exception when drawing the pdf.
[ https://issues.apache.org/jira/browse/PDFBOX-589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler closed PDFBOX-589.
-------------------------------------
> Arg list is optional for some color seperations. However, code expects it to be set and causes a null pointer exception when drawing the pdf.
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-589
> URL: https://issues.apache.org/jira/browse/PDFBOX-589
> Project: PDFBox
> Issue Type: Bug
> Components: Writing
> Affects Versions: 1.0.0
> Environment: MacOS/Java6
> Reporter: Yonas Jongkind
> Assignee: Andreas Lehmkühler
> Fix For: 1.0.0
>
> Attachments: 1583A Newborn Record.pdf
>
>
> Here is a patch that includes the required additional check for null. And a PDF to test it with as well.
> ### Eclipse Workspace Patch 1.0
> #P pdfbox
> Index: src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingSeparation.java
> ===================================================================
> --- src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingSeparation.java (revision 1818)
> +++ src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingSeparation.java (working copy)
> @@ -61,7 +61,9 @@
> {
> PDSeparation sep = (PDSeparation) colorSpace;
> colorSpace = sep.getAlternateColorSpace();
> - argList = sep.getColorValues().toList();
> + if (sep.getColorValues() != null) {
> + argList = sep.getColorValues().toList();
> + }
> }
>
> if (colorSpace != null)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.