mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
null check and empty string check added
This commit is contained in:
parent
5ad65489f0
commit
8c3aa3ca3a
@ -128,6 +128,20 @@ public class STIXReportModule implements GeneralReportModule {
|
||||
|
||||
// Process the file/directory name entry
|
||||
String stixFileName = configPanel.getStixFile();
|
||||
if (stixFileName == null) {
|
||||
logger.log(Level.SEVERE, "STIXReportModuleConfigPanel.stixFile not initialized ");
|
||||
MessageNotifyUtil.Message.error("No STIX file/directory provided ");
|
||||
progressPanel.complete();
|
||||
progressPanel.updateStatusLabel("No STIX file/directory provided ");
|
||||
return;
|
||||
}
|
||||
if (stixFileName.isEmpty()) {
|
||||
logger.log(Level.SEVERE, "No STIX file/directory provided ");
|
||||
MessageNotifyUtil.Message.error("No STIX file/directory provided ");
|
||||
progressPanel.complete();
|
||||
progressPanel.updateStatusLabel("No STIX file/directory provided ");
|
||||
return;
|
||||
}
|
||||
File stixFile = new File(stixFileName);
|
||||
|
||||
if (!stixFile.exists()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user