Merge pull request #4637 from APriestman/restoreClearingPortableCase

Portable Case - clear out the artifact caches and set the case to null.
This commit is contained in:
Richard Cordovano 2019-03-21 13:32:48 -04:00 committed by GitHub
commit b91cdd4c98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -708,15 +708,19 @@ public class CreatePortableCaseModule implements GeneralReportModule {
oldIdToNewContent.clear(); oldIdToNewContent.clear();
newIdToContent.clear(); newIdToContent.clear();
oldTagNameToNewTagName.clear(); oldTagNameToNewTagName.clear();
oldArtTypeIdToNewArtTypeId.clear();
oldAttrTypeIdToNewAttrType.clear();
oldArtifactIdToNewArtifact.clear();
currentCase = null; currentCase = null;
if (portableSkCase != null) { if (portableSkCase != null) {
portableSkCase.close(); portableSkCase.close();
portableSkCase = null;
} }
caseFolder = null; caseFolder = null;
copiedFilesFolder = null; copiedFilesFolder = null;
} }
@Override @Override
public JPanel getConfigurationPanel() { public JPanel getConfigurationPanel() {
configPanel = new CreatePortableCasePanel(); configPanel = new CreatePortableCasePanel();