[ https://issues.apache.org/jira/browse/PDFBOX-204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maruan Sahyoun closed PDFBOX-204. --------------------------------- Resolution: Cannot Reproduce the file mentioned seems to have been fixed as it can be displayed nicely in Adobe Acrobat, Reader etc. Testing with PDFToImage works fine. > NPE on damaged file > ------------------- > > Key: PDFBOX-204 > URL: https://issues.apache.org/jira/browse/PDFBOX-204 > Project: PDFBox > Issue Type: Bug > Components: PDModel > Priority: Minor > > [imported from SourceForge] > http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1570308 > Originally submitted by renaudw on 2006-10-03 14:57. > This file: > http://bat.library.ucsf.edu/data/p/q/s/pqs01a99/pqs01a9 > 9.pdf > causes a NPE when PDDocumentCatalog.getAllPages() is > called. > Arguably, the file is damaged beyond repair -- even > the Acrobat Reader can't display it. Nonetheless it > would be nice to get an IO exception instead of NPE. > java.lang.NullPointerException > on /web/gfdocs/p/q/s/pqs01a99/pqs01a99.pdf (stacktrace > follows) > java.lang.NullPointerException > at org.pdfbox.pdmodel.PDPageNode.getAllKids > (PDPageNode.java:194) > at org.pdfbox.pdmodel.PDPageNode.getAllKids > (PDPageNode.java:182) > at > org.pdfbox.pdmodel.PDDocumentCatalog.getAllPages > (PDDocumentCatalog.java:162) > at > edu.ucsf.library.utils.TextOverImageDocumentDetector.co > llectTextRenderingModes > (TextOverImageDocumentDetector.java:150) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira