Empty and Null

Check if password is empty and set to null
This commit is contained in:
Mark McKinnon 2024-05-28 12:53:08 -04:00
parent 8079f2ca69
commit fb79eb37ba
2 changed files with 4 additions and 1 deletions

View File

@ -317,6 +317,9 @@ public class ImageDSProcessor implements DataSourceProcessor, AutoIngestDataSour
sha256 = null; sha256 = null;
} }
bitlockerPassword = configPanel.getBitlockerPassword(); bitlockerPassword = configPanel.getBitlockerPassword();
if (bitlockerPassword.isEmpty()) {
bitlockerPassword = null;
}
} }
/** /**

View File

@ -457,7 +457,7 @@ public class ImageFilePanel extends JPanel implements DocumentListener {
} }
String getBitlockerPassword() { String getBitlockerPassword() {
return this.getBitlockerPasswordTextField.getText(); return this.bitlockerPasswordTextField.getText();
} }
public void reset() { public void reset() {