Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Workaround
-
0.6-incubating
-
Java 1.6, Windows 7, 64 bits
Description
I'm doing a program to read/modify metadata of ODF documents, the program works correctly with version odftoolkit-0.5 but not with odftoolkit-0.6 version, running the first line jumps to the finally block directly without giving any kind of error, this is my code:
try {
doc = (TextDocument) TextDocument.loadDocument(new File("OdfTextDocument.odt"));
OdfFileDom metadom = doc.getMetaDom();
Meta metadata = new Meta(metadom);
...
} finally {
if(doc != null)
doc.close();
}