Browse Source

REPORT-116546 编辑图片控件之后,cpt模板切换到frm卡住

【问题原因】图片控件的listener没有eventName,会产生NPE,导致UI卡顿
【改动思路】判断eventName是否为空
release/11.0
Leo.Qin 6 months ago
parent
commit
fe51c30b1d
  1. 3
      designer-base/src/main/java/com/fr/design/gui/controlpane/UIListGroupControlPane.java

3
designer-base/src/main/java/com/fr/design/gui/controlpane/UIListGroupControlPane.java

@ -118,6 +118,9 @@ public abstract class UIListGroupControlPane extends UIControlPane implements Li
for (int i = 0, size = widget.getListenerSize(); i < size; i++) {
Listener listener = widget.getListener(i);
if (!listener.isDefault()) {
if (StringUtils.isEmpty(listener.getEventName())) {
continue;
}
String eventName = switchLang(listener.getEventName()) + (nameObjectList.size() + 1);
NameObject nameObject = new NameObject(eventName, listener);
nameObjectList.add(nameObject);

Loading…
Cancel
Save