Browse Source

REPORT-78361

【迭代】【起始页】不打开任何报表启动,设计器目录树打开模板报错npe
规避 npe
feature/x
Harrison 2 years ago
parent
commit
aee2a99c13
  1. 2
      designer-realize/src/main/java/com/fr/design/mainframe/ElementCasePaneDelegate.java

2
designer-realize/src/main/java/com/fr/design/mainframe/ElementCasePaneDelegate.java

@ -86,7 +86,7 @@ public class ElementCasePaneDelegate extends ElementCasePane<WorkSheet> {
QuickEditorRegion.getInstance().populate(getCurrentEditor());
JTemplate editingTemplate = HistoryTemplateListPane.getInstance().getCurrentEditingTemplate();
// 模板初始化完成后,才能初始化超级链接面板
if (editingTemplate != null && !editingTemplate.isUpMode()) {
if (JTemplate.isValid(editingTemplate) && !editingTemplate.isUpMode()) {
Selection editingSelection = getSelection();
// 获取超级链接面板并刷新显示
HyperlinkGroupPane hyperlinkGroupPane = editingTemplate.getHyperLinkPane(HyperlinkGroupPaneActionImpl.getInstance());

Loading…
Cancel
Save