[
https://issues.apache.org/jira/browse/PDFBOX-2248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14077852#comment-14077852
]
Tilman Hausherr commented on PDFBOX-2248:
-----------------------------------------
Could you check whether it also happens with a snapshot version?
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox/1.8.7-SNAPSHOT/
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/preflight/1.8.7-SNAPSHOT/
(download both files!)
> nullpointerexception on validImageColorSpace
> --------------------------------------------
>
> Key: PDFBOX-2248
> URL: https://issues.apache.org/jira/browse/PDFBOX-2248
> Project: PDFBox
> Issue Type: Bug
> Components: Preflight
> Affects Versions: 1.8.5, 1.8.6
> Environment: windows and linux.
> Reporter: samuel lumière
> Priority: Critical
> Labels: ContentStreamEngine, nullpointer, validImageColorSpace
>
> java.lang.NullPointerException
> at
> org.apache.pdfbox.preflight.content.ContentStreamEngine.validImageColorSpace(ContentStreamEngine.java:330)
> at
> org.apache.pdfbox.preflight.content.ContentStreamWrapper.processOperator(ContentStreamWrapper.java:178)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:268)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:235)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:215)
> at
> org.apache.pdfbox.preflight.content.ContentStreamWrapper.validPageContentStream(ContentStreamWrapper.java:76)
> at
> org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateContent(SinglePageValidationProcess.java:179)
> at
> org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validate(SinglePageValidationProcess.java:87)
> at
> org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
> at
> org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:52)
> at
> org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validatePage(PageTreeValidationProcess.java:58)
> at
> org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validate(PageTreeValidationProcess.java:47)
> at
> org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
> i cannot submit an exemple PDF, because the one with the errors are
> confidential.
> they were generated with PDFCreator (winword 2010, print into)
> not all the PDF generated the same way have the same error
> critical for us because we need to validate the PDFs before uploading them to
> our server.
--
This message was sent by Atlassian JIRA
(v6.2#6252)