Browse Source

REPORT-91839 模板版本管理二期 偶遇报错,不确定场景,加一下处理

newui
Destiny.Lin 1 year ago
parent
commit
8cfe74ab89
  1. 7
      designer-base/src/main/java/com/fr/design/mainframe/vcs/common/VcsHelper.java

7
designer-base/src/main/java/com/fr/design/mainframe/vcs/common/VcsHelper.java

@ -79,7 +79,12 @@ public class VcsHelper implements JTemplateActionListener {
VcsOperator op = WorkContext.getCurrent().get(VcsOperator.class);
// 开了设计器启动页面时一开始取不到VcsOperator,通过下面的切换环境事件再取,这边判断下
if (op != null) {
legacyMode = op.isLegacyMode();
try {
legacyMode = op.isLegacyMode();
} catch (Exception e) {
legacyMode = true;
FineLoggerFactory.getLogger().error("[VcsHelper] get legacy first failed ", e.getMessage());
}
}
EventDispatcher.listen(ConfigEvent.READY, new ListenerAdaptor() {
@Override

Loading…
Cancel
Save