Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0, 2.0.1, 2.0.2, 3.0.0 PDFBox
-
None
Description
NPE happens in this code if the content is crap, because peekToken() can be null:
// find /Private dict while (!lexer.peekToken().getText().equals("Private")) { lexer.nextToken(); }
Commit 1743407 from tilman in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1743407 ]
PDFBOX-3348: avoid NPE