From 4665a8e0c8af6d4dd918e811a2c917c178743b15 Mon Sep 17 00:00:00 2001 From: mhmdfy Date: Mon, 14 Sep 2015 14:38:08 -0400 Subject: [PATCH] if getName() is empty -> error popup and don't display the module --- Core/src/org/sleuthkit/autopsy/report/ReportVisualPanel1.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/src/org/sleuthkit/autopsy/report/ReportVisualPanel1.java b/Core/src/org/sleuthkit/autopsy/report/ReportVisualPanel1.java index 7227f5a349..2113f7992a 100644 --- a/Core/src/org/sleuthkit/autopsy/report/ReportVisualPanel1.java +++ b/Core/src/org/sleuthkit/autopsy/report/ReportVisualPanel1.java @@ -140,7 +140,8 @@ final class ReportVisualPanel1 extends JPanel implements ListSelectionListener { // Make sure that the report module has a valid non-null name. 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) {