Browse Source

UILabel空指针bug修复

persist/11.0-arabic
obo 4 months ago
parent
commit
2e410fbdd9
  1. 2
      designer-base/src/main/java/com/fr/design/gui/ilable/UILabel.java

2
designer-base/src/main/java/com/fr/design/gui/ilable/UILabel.java

@ -84,7 +84,7 @@ public class UILabel extends JLabel implements UITextComponent {
return;
}
String text = this.getText();
if (text.length() > 1 && text.charAt(text.length() - 1) == ':') {
if (StringUtils.isNotEmpty(text) && text.length() > 1 && text.charAt(text.length() - 1) == ':') {
text = ":" + text.substring(0, text.length() - 1);
this.setText(text);
}

Loading…
Cancel
Save