View | Details | Raw Unified | Return to bug 62165
Collapse All | Expand All

(-)a/src/java/org/apache/poi/hssf/extractor/OldExcelExtractor.java (-1 / +4 lines)
Lines 130-137 public class OldExcelExtractor implements Closeable { Link Here
130
            NPOIFSFileSystem poifs = new NPOIFSFileSystem(bis);
130
            NPOIFSFileSystem poifs = new NPOIFSFileSystem(bis);
131
            try {
131
            try {
132
                open(poifs);
132
                open(poifs);
133
                toClose = poifs; // Fixed by GR, we should not close it here
133
            } finally {
134
            } finally {
134
                poifs.close();
135
                if (toClose == null) {
136
                    poifs.close();
137
                }
135
            }
138
            }
136
        } else {
139
        } else {
137
            ris = new RecordInputStream(bis);
140
            ris = new RecordInputStream(bis);

Return to bug 62165