5105: Erroneous "new case" wizard behavior if case name ends with empty space character

This commit is contained in:
Raman 2019-06-12 11:28:28 -04:00
parent 3fe8700af9
commit 1684b62823

View File

@ -88,7 +88,7 @@ final class NewCaseVisualPanel1 extends JPanel implements DocumentListener {
* @return caseName the case name from the case name text field * @return caseName the case name from the case name text field
*/ */
String getCaseName() { String getCaseName() {
return this.caseNameTextField.getText(); return this.caseNameTextField.getText().trim();
} }
/** /**
@ -109,7 +109,7 @@ final class NewCaseVisualPanel1 extends JPanel implements DocumentListener {
* @return baseDirectory the base directory from the case dir text field * @return baseDirectory the base directory from the case dir text field
*/ */
String getCaseParentDir() { String getCaseParentDir() {
String parentDir = this.caseParentDirTextField.getText(); String parentDir = this.caseParentDirTextField.getText().trim();
if (parentDir.endsWith(File.separator) == false) { if (parentDir.endsWith(File.separator) == false) {
parentDir = parentDir + File.separator; parentDir = parentDir + File.separator;
} }