]> source.dussan.org Git - poi.git/commit
Use revert() instead of close() when processing fails
authorDominik Stadler <centic@apache.org>
Sat, 16 Dec 2023 12:08:54 +0000 (12:08 +0000)
committerDominik Stadler <centic@apache.org>
Sat, 16 Dec 2023 12:08:54 +0000 (12:08 +0000)
commitffc4795258a34c169b158ba08c9e911ae34f3aa0
tree6f9d1be897da7e2f52165aac9a8719b8aca5b234
parent4b84986671b2da550ba0674e8b38d234d4ee650f
Use revert() instead of close() when processing fails

Otherwise we might write partial changes to the
underlying file which is unexpected.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914706 13f79535-47bb-0310-9956-ffa450edef68
poi-ooxml/src/main/java/org/apache/poi/ooxml/POIXMLDocumentPart.java