Browse Source

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

Merge in DESIGN/design from ~LEO.QIN/design:release/11.0 to release/11.0

* commit 'fe51c30b1dc1001ad1002b7c68569e8308b7ec73':
  REPORT-116546 编辑图片控件之后,cpt模板切换到frm卡住 【问题原因】图片控件的listener没有eventName,会产生NPE,导致UI卡顿 【改动思路】判断eventName是否为空
release/11.0
Leo.Qin-覃宇攀 6 months ago
parent
commit
3f61eae3ad
  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++) { for (int i = 0, size = widget.getListenerSize(); i < size; i++) {
Listener listener = widget.getListener(i); Listener listener = widget.getListener(i);
if (!listener.isDefault()) { if (!listener.isDefault()) {
if (StringUtils.isEmpty(listener.getEventName())) {
continue;
}
String eventName = switchLang(listener.getEventName()) + (nameObjectList.size() + 1); String eventName = switchLang(listener.getEventName()) + (nameObjectList.size() + 1);
NameObject nameObject = new NameObject(eventName, listener); NameObject nameObject = new NameObject(eventName, listener);
nameObjectList.add(nameObject); nameObjectList.add(nameObject);

Loading…
Cancel
Save