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 2016/03/17 20:19:33 UTC
[jira] [Updated] (PDFBOX-1926) Document.save() after
Document.close() causes Null Pointer Exception
[ https://issues.apache.org/jira/browse/PDFBOX-1926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler updated PDFBOX-1926:
---------------------------------------
Fix Version/s: 2.0.0
> Document.save() after Document.close() causes Null Pointer Exception
> --------------------------------------------------------------------
>
> Key: PDFBOX-1926
> URL: https://issues.apache.org/jira/browse/PDFBOX-1926
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.8.4
> Environment: Linux (Ubuntu)
> Reporter: Bastian Preindl
> Priority: Minor
> Fix For: 2.0.0
>
>
> Until version 1.8.3 it was possible to perform a document's save()-call also if the document's close()-method has already been called. In my opinion this made sense as I'd like to persist the document's content also if no more (content changing) operations are performed on it.
> Anyway, in 1.8.4, calling save() after close() causes a NullPointerException:
> Caused by: java.lang.NullPointerException
> at org.apache.pdfbox.pdmodel.PDDocument.getDocumentCatalog(PDDocument.java:765)
> at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1346)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org