[
https://issues.apache.org/jira/browse/PDFBOX-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15280601#comment-15280601
]
ASF subversion and git services commented on PDFBOX-3348:
---------------------------------------------------------
Commit 1743408 from [~tilman] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1743408 ]
PDFBOX-3348: avoid NPE
> NPE in Type1Parser.parseBinary
> ------------------------------
>
> Key: PDFBOX-3348
> URL: https://issues.apache.org/jira/browse/PDFBOX-3348
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 2.0.0, 2.0.1, 2.0.2, 2.1.0
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Fix For: 2.0.2, 2.1.0
>
> Attachments: PDFBOX-3348-058289-p1.pdf
>
>
> NPE happens in this code if the content is crap, because peekToken() can be
> null:
> {code}
> // find /Private dict
> while (!lexer.peekToken().getText().equals("Private"))
> {
> lexer.nextToken();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]