diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/connect/SshPane.java b/designer-base/src/main/java/com/fr/design/data/datapane/connect/SshPane.java index dc62ec59e0..16374bd5c4 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/connect/SshPane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/connect/SshPane.java @@ -250,7 +250,7 @@ public class SshPane extends BasicPane { @Override public void keyReleased(KeyEvent e) { String text = KeyFileUITextField.this.getTextOrigin(); - if (text != null) { + if (!StringUtils.isEmpty(text)) { if (text.contains(UPPER)) { text = MUTI_DOT.matcher(text).replaceAll("."); KeyFileUITextField.this.setTextOrigin(text);