do not upload probably corrupted file

This commit is contained in:
Pavol Zibrita 2011-11-15 16:46:21 +01:00
parent d8173c4326
commit dfab4534d6

View file

@ -602,13 +602,15 @@ public class IndexBatchCreator {
poi = reader.containsPoiData();
reader.close();
} catch (Exception e) {
log.info("Exception", e);
log.info("File with not be uploaded! Exception", e);
if (raf != null) {
try {
raf.close();
} catch (IOException e1) {
}
}
//do not upload probably corrupted file
return;
}
}
summary = " index for ";