You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/04/16 22:19:59 UTC

[jira] [Commented] (PDFBOX-2760) NPE in MoveText.process()

    [ https://issues.apache.org/jira/browse/PDFBOX-2760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14498653#comment-14498653 ] 

ASF subversion and git services commented on PDFBOX-2760:
---------------------------------------------------------

Commit 1674145 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1674145 ]

PDFBOX-2760: avoid NPE by checking that textLineMatrix exists

> NPE in MoveText.process()
> -------------------------
>
>                 Key: PDFBOX-2760
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2760
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.0
>
>         Attachments: 455746.pdf
>
>
> {code}
> java.lang.NullPointerException
> 	at org.apache.pdfbox.contentstream.operator.text.MoveText.process(MoveText.java:41)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:829)
> 	at org.apache.pdfbox.preflight.content.PreflightContentStream.processOperator(PreflightContentStream.java:140)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:810)
> 	at org.apache.pdfbox.contentstream.operator.text.MoveTextSetLeading.process(MoveTextSetLeading.java:45)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:829)
> 	at org.apache.pdfbox.preflight.content.PreflightContentStream.processOperator(PreflightContentStream.java:140)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:490)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:456)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:167)
> 	at org.apache.pdfbox.preflight.content.PreflightContentStream.validatePageContentStream(PreflightContentStream.java:72)
> 	at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateContent(SinglePageValidationProcess.java:186)
> 	at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validate(SinglePageValidationProcess.java:89)
> 	at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:83)
> 	at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:55)
> 	at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validatePage(PageTreeValidationProcess.java:60)
> 	at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validate(PageTreeValidationProcess.java:48)
> 	at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:83)
> 	at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:121)
> 	at org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:164)
> 	at com.mycompany.preflightmasstest.PreflightChecker.run(PreflightChecker.java:49)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> 	at java.lang.Thread.run(Unknown Source)
> {code}
> The cause is this:
> {code}
> ET
> 240.48 515.64 1.44 0.6 re
> f
> 243.36 515.64 1.44 0.6 re
> f
> 246.24 515.64 1.44 0.6 re
> f
> 249.12 515.64 1.44 0.6 re
> f
> 252 515.64 1.44 0.6 re
> f
> 254.88 515.64 1.44 0.6 re
> f
> 257.76 515.64 1.44 0.6 re
> f
> 260.64 515.64 1.44 0.6 re
> f
> 263.52 515.64 1.44 0.6 re
> f
> 266.4 515.64 1.44 0.6 re
> f
> 269.28 515.64 1.44 0.6 re
> f
> 23.93.96 1.44 0.6 re
> f
> 1 .0.44--32 -1.18 TD
> {code}
> i.e. the operator is called outsitde of BT...ET.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org