Bug 64301 - Allow try-with-resources with OPCPackage.revert()
Summary: Allow try-with-resources with OPCPackage.revert()
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: OPC (show other bugs)
Version: 4.1.x-dev
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-01 23:19 UTC by Andreas Beeker
Modified: 2020-04-01 23:24 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Beeker 2020-04-01 23:19:40 UTC
The following construct is causing a NullPointer

try (OPCPackage p = OPCPackage.create(new File(...))) {
   p.revert();
}

... commit follows ...
Comment 1 Andreas Beeker 2020-04-01 23:24:17 UTC
Fixed via r1876018