mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
catch all throwables while instantiating the POI container
This commit is contained in:
parent
f391e32f6b
commit
b6d0c3c5b6
@ -207,7 +207,7 @@ class ImageExtractor {
|
||||
HWPFDocument doc = null;
|
||||
try {
|
||||
doc = new HWPFDocument(new ReadContentInputStream(af));
|
||||
} catch (IOException | OldFileFormatException ex) {
|
||||
} catch (Throwable ex) {
|
||||
logger.log(Level.WARNING, NbBundle.getMessage(this.getClass(), "EmbeddedFileExtractorIngestModule.ImageExtractor.docContainer.init.err", af.getName())); //NON-NLS
|
||||
return null;
|
||||
}
|
||||
@ -245,7 +245,7 @@ class ImageExtractor {
|
||||
XWPFDocument docx = null;
|
||||
try {
|
||||
docx = new XWPFDocument(new ReadContentInputStream(af));
|
||||
} catch (IOException | OldFileFormatException ex) {
|
||||
} catch (Throwable ex) {
|
||||
logger.log(Level.WARNING, NbBundle.getMessage(this.getClass(), "EmbeddedFileExtractorIngestModule.ImageExtractor.docxContainer.init.err", af.getName())); //NON-NLS
|
||||
return null;
|
||||
}
|
||||
@ -284,7 +284,7 @@ class ImageExtractor {
|
||||
SlideShow ppt = null;
|
||||
try {
|
||||
ppt = new SlideShow(new ReadContentInputStream(af));
|
||||
} catch (IOException | OldFileFormatException ex) {
|
||||
} catch (Throwable ex) {
|
||||
logger.log(Level.WARNING, NbBundle.getMessage(this.getClass(), "EmbeddedFileExtractorIngestModule.ImageExtractor.pptContainer.init.err", af.getName())); //NON-NLS
|
||||
return null;
|
||||
}
|
||||
@ -354,7 +354,7 @@ class ImageExtractor {
|
||||
XMLSlideShow pptx;
|
||||
try {
|
||||
pptx = new XMLSlideShow(new ReadContentInputStream(af));
|
||||
} catch (IOException | OldFileFormatException ex) {
|
||||
} catch (Throwable ex) {
|
||||
logger.log(Level.WARNING, NbBundle.getMessage(this.getClass(), "EmbeddedFileExtractorIngestModule.ImageExtractor.pptxContainer.init.err", af.getName())); //NON-NLS
|
||||
return null;
|
||||
}
|
||||
@ -401,7 +401,7 @@ class ImageExtractor {
|
||||
Workbook xls;
|
||||
try {
|
||||
xls = new HSSFWorkbook(new ReadContentInputStream(af));
|
||||
} catch (IOException | OldFileFormatException ex) {
|
||||
} catch (Throwable ex) {
|
||||
logger.log(Level.WARNING, NbBundle.getMessage(this.getClass(), "EmbeddedFileExtractorIngestModule.ImageExtractor.xlsContainer.init.err", af.getName()) + af.getName()); //NON-NLS
|
||||
return null;
|
||||
}
|
||||
@ -444,7 +444,7 @@ class ImageExtractor {
|
||||
Workbook xlsx;
|
||||
try {
|
||||
xlsx = new XSSFWorkbook(new ReadContentInputStream(af));
|
||||
} catch (IOException | OldFileFormatException ex) {
|
||||
} catch (Throwable ex) {
|
||||
logger.log(Level.WARNING, NbBundle.getMessage(this.getClass(), "EmbeddedFileExtractorIngestModule.ImageExtractor.xlsxContainer.init.err", af.getName())); //NON-NLS
|
||||
return null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user