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

Daniel Persson commented on PDFBOX-3806:
----------------------------------------

I've tested with our application with installed trunk (3.0.0-SNAPSHOT), 
pdfbox-app (2.0.7-SNAPSHOT) and pdfbox-debugger (2.0.7 SNAPSHOT).

Don't see any errors.

Best regards
Daniel

> Nullpointer exception in getLeftSideBearing
> -------------------------------------------
>
>                 Key: PDFBOX-3806
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3806
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.6
>            Reporter: Daniel Persson
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 2.0.7, 3.0.0
>
>         Attachments: font.raw
>
>
> While processing todays batch of data we got a Nullpointer exception in 
> getLeftSideBearing. Sadly I can't give you the PDF.
> ```
>     public int getLeftSideBearing(int gid) {
>         return gid < 
> this.numHMetrics?this.leftSideBearing[gid]:this.nonHorizontalLeftSideBearing[gid
>  - this.numHMetrics];
>     }
> ```
> In this function there could be a case where nonHorizontalLeftSideBearing is 
> null and you still ask for a GID in larger or equal to numHMetrics.
> First time I see this issue and so far only 4 characters in one PDF has this 
> issue so not critical.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to