We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8b430f commit 2ce36bdCopy full SHA for 2ce36bd
iped-engine/src/main/java/iped/engine/datasource/UfedXmlReader.java
@@ -164,11 +164,9 @@ public boolean isSupported(File datasource) {
164
}
165
166
// supports any folder with valid XML report inside
167
- try (InputStream xmlReport = lookUpXmlReportInputStream(datasource)) {
168
- return xmlReport != null;
169
- } catch (Exception e) {
170
- return false;
171
- }
+ InputStream xmlReport = lookUpXmlReportInputStream(datasource);
+ IOUtil.closeQuietly(xmlReport);
+ return xmlReport != null;
172
173
174
private InputStream getXmlInputStream(File file) {
0 commit comments