8202 fix progress bar IllegalArgumentException

This commit is contained in:
Richard Cordovano 2021-11-30 17:54:37 -05:00
parent 1ed5db50f6
commit 1804f4cb1c
3 changed files with 11 additions and 3 deletions

View File

@ -1375,8 +1375,16 @@ final class IngestJobExecutor {
if (usingNetBeansGUI && !jobCancelled) { if (usingNetBeansGUI && !jobCancelled) {
SwingUtilities.invokeLater(() -> { SwingUtilities.invokeLater(() -> {
/* /*
* Note that if processedFiles exceeds estimatedFilesToProcess * Note that if processedFiles exceeds estimatedFilesToProcess,
* the progress bar will go into an infinte loop throwing
* IllegalArgumentExceptions in the EDT.
*/ */
long processedFilesCapture = processedFiles;
if (processedFiles <= estimatedFilesToProcess) {
fileIngestProgressBar.progress(fileName, (int) processedFilesCapture);
} else {
fileIngestProgressBar.progress(fileName, (int) estimatedFilesToProcess);
}
fileIngestProgressBar.progress(fileName, (int) processedFiles); fileIngestProgressBar.progress(fileName, (int) processedFiles);
filesInProgress.add(fileName); filesInProgress.add(fileName);
}); });

View File

@ -1,5 +1,5 @@
#Updated by build script #Updated by build script
#Thu, 30 Sep 2021 19:36:31 -0400 #Tue, 30 Nov 2021 17:19:50 -0500
LBL_splash_window_title=Starting Autopsy LBL_splash_window_title=Starting Autopsy
SPLASH_HEIGHT=314 SPLASH_HEIGHT=314
SPLASH_WIDTH=538 SPLASH_WIDTH=538

View File

@ -1,4 +1,4 @@
#Updated by build script #Updated by build script
#Thu, 30 Sep 2021 19:36:31 -0400 #Tue, 30 Nov 2021 17:19:50 -0500
CTL_MainWindow_Title=Autopsy 4.19.2 CTL_MainWindow_Title=Autopsy 4.19.2
CTL_MainWindow_Title_No_Project=Autopsy 4.19.2 CTL_MainWindow_Title_No_Project=Autopsy 4.19.2