You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/07/03 03:35:26 UTC
[jira] [Resolved] (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 ]
John Hewson resolved PDFBOX-1926.
---------------------------------
Resolution: Fixed
IOException is now thrown in the trunk as of [r1607511|http://svn.apache.org/r1607511].
> 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
>
> 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.2#6252)