mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
2020: instead of passing a msg from getLocalizedMessage() method, pass an string of error message to avoid a NPE problem
This commit is contained in:
parent
c507799d47
commit
bd023b6859
@ -172,11 +172,13 @@ public class STIXReportModule implements GeneralReportModule {
|
|||||||
try {
|
try {
|
||||||
processFile(file.getAbsolutePath(), progressPanel, output);
|
processFile(file.getAbsolutePath(), progressPanel, output);
|
||||||
} catch (TskCoreException | JAXBException ex) {
|
} catch (TskCoreException | JAXBException ex) {
|
||||||
logger.log(Level.SEVERE, String.format("Unable to process STIX file %s", file), ex); //NON-NLS
|
String errMsg = String.format("Unable to process STIX file %s", file);
|
||||||
|
logger.log(Level.SEVERE, errMsg, ex); //NON-NLS
|
||||||
MessageNotifyUtil.Notify.show("STIXReportModule", //NON-NLS
|
MessageNotifyUtil.Notify.show("STIXReportModule", //NON-NLS
|
||||||
ex.getLocalizedMessage(),
|
errMsg,
|
||||||
MessageNotifyUtil.MessageType.ERROR);
|
MessageNotifyUtil.MessageType.ERROR);
|
||||||
hadErrors = true;
|
hadErrors = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
// Clear out the ID maps before loading the next file
|
// Clear out the ID maps before loading the next file
|
||||||
idToObjectMap = new HashMap<String, ObjectType>();
|
idToObjectMap = new HashMap<String, ObjectType>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user