[
https://issues.apache.org/jira/browse/PDFBOX-589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yonas Jongkind updated PDFBOX-589:
----------------------------------
Attachment: 1583A Newborn Record.pdf
This file triggers the null pointer exception, so you could use it as a test if
you wanted.
> 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
> 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.