mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
if getName() is empty -> error popup and don't display the module
This commit is contained in:
parent
4e0e47a33a
commit
4665a8e0c8
@ -140,7 +140,8 @@ final class ReportVisualPanel1 extends JPanel implements ListSelectionListener {
|
|||||||
|
|
||||||
// Make sure that the report module has a valid non-null name.
|
// Make sure that the report module has a valid non-null name.
|
||||||
private boolean validModule(ReportModule module) {
|
private boolean validModule(ReportModule module) {
|
||||||
return module != null && module.getName() != null && module.getRelativeFilePath() != null;
|
return module != null && module.getName() != null && !module.getName().isEmpty()
|
||||||
|
&& module.getRelativeFilePath() != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void postWarningMessage(ReportModule module) {
|
private void postWarningMessage(ReportModule module) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user