You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2013/12/03 12:09:36 UTC
[jira] [Assigned] (PDFBOX-1789) NullPointerException at
PDPageContentStream.setFont
[ https://issues.apache.org/jira/browse/PDFBOX-1789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler reassigned PDFBOX-1789:
------------------------------------------
Assignee: Andreas Lehmkühler
> NullPointerException at PDPageContentStream.setFont
> ---------------------------------------------------
>
> Key: PDFBOX-1789
> URL: https://issues.apache.org/jira/browse/PDFBOX-1789
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.8.3
> Reporter: Gerhard Temper
> Assignee: Andreas Lehmkühler
> Priority: Critical
>
> Using pdfbox 1.8.3 I get a NullPointerException in PDPageContentStream.setFont (java.lang.NullPointerException at org.apache.pdfbox.pdmodel.edit.PDPageContentStream.setFont(PDPageContentStream.java:322).
> I create a new "PDPageContentStream" object with "resetContext = true". In the constructor of PDPageContentStream the variable "resources" gets initialized. As a result of "resetContext = true" PDPageContentStream::close is called. In the "close" method now "resources" gets null. A following call to "PDPageContentStream::setFont" fails because resources is null.
--
This message was sent by Atlassian JIRA
(v6.1#6144)