You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2021/05/16 06:07:00 UTC
[jira] [Commented] (PDFBOX-5193) v2.0.22 and v3.0.0-RC1 PDF
Debugger app crashes with java.lang.NullPointerException
[ https://issues.apache.org/jira/browse/PDFBOX-5193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17345626#comment-17345626 ]
Tilman Hausherr commented on PDFBOX-5193:
-----------------------------------------
stack trace (I found the file on some dubious ftp site); lines numbers are not correct
{noformat}
java.lang.NullPointerException: Cannot invoke "org.apache.pdfbox.cos.COSName.equals(Object)" because the return value of "org.apache.pdfbox.cos.COSDictionary.getCOSName(org.apache.pdfbox.cos.COSName)" is null
org.apache.pdfbox.debugger.PDFDebugger.isFont(PDFDebugger.java:887)
org.apache.pdfbox.debugger.PDFDebugger.jTree1ValueChanged(PDFDebugger.java:752)
java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85){noformat}
The problem is that {{dic.containsKey(COSName.TYPE)}} is true but {{dic.getCOSName(COSName.TYPE).equals(COSName.FONT)}} fails as /Type isn't a name.
> v2.0.22 and v3.0.0-RC1 PDF Debugger app crashes with java.lang.NullPointerException
> -----------------------------------------------------------------------------------
>
> Key: PDFBOX-5193
> URL: https://issues.apache.org/jira/browse/PDFBOX-5193
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.0.22, 3.0.0 PDFBox
> Environment: Windows 10 x64
> java 11.0.2 2019-01-15 LTS
> Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
> Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)
> Reporter: Peter Wyatt
> Priority: Major
>
> Identical crash across v2.0.22 and v3.0.0-RC1 when using PDF Debugger app to view PDF file that ships with Adobe Acrobat DC: "C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\plug_ins\Preflight\PDF1_7FormalRep.pdf". PDF file not attached due to Adobe copyright.
> Steps to repo (same for both versions):
> * switch view: View | Show internal structure
> * Expand Root by clicking [+]
> * Expand FormalRepTree by clicking [+]
> * Scroll down to "Catalog: (30)"
> * Click "Catalog: (30)" --> CRASH
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org