From b3856fd0d1ed22c33bd35143c05684024c06725e Mon Sep 17 00:00:00 2001 From: Richard Cordovano Date: Wed, 13 Nov 2013 19:35:31 -0500 Subject: [PATCH] Fix for bug in handling of null file path/ext code for report modules --- .../autopsy/report/ReportProgressPanel.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/report/ReportProgressPanel.java b/Core/src/org/sleuthkit/autopsy/report/ReportProgressPanel.java index bcb876424b..c131923155 100644 --- a/Core/src/org/sleuthkit/autopsy/report/ReportProgressPanel.java +++ b/Core/src/org/sleuthkit/autopsy/report/ReportProgressPanel.java @@ -48,18 +48,18 @@ public class ReportProgressPanel extends javax.swing.JPanel { } private void customInit(String reportName, String reportPath) { - reportLabel.setText(reportName); - pathLabel.setText("" + shortenPath(reportPath) + ""); - pathLabel.setToolTipText(reportPath); - reportProgressBar.setIndeterminate(true); reportProgressBar.setMaximum(100); - + + reportLabel.setText(reportName); processingLabel.setText("Queuing..."); STATUS = ReportStatus.QUEUING; if (reportPath != null) { - // Add the "link" effect to the pathLabel + pathLabel.setText("" + shortenPath(reportPath) + ""); + pathLabel.setToolTipText(reportPath); + + // Add the "link" effect to the pathLabel final String linkPath = reportPath; pathLabel.addMouseListener(new MouseListener() {