Browse Source

REPORT-25730 最新的release设计器启动后一直报模板不存在

这里执行的时候需要判空。
feature/big-screen
Harrison 5 years ago
parent
commit
b15807fb28
  1. 2
      designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java

2
designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java

@ -171,9 +171,11 @@ public class TableDataTreePane extends BasicTableDataTreePane {
private void reloadCurrTemplate() {
JTemplate<?, ?> jt = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate();
if (jt != null && jt.getEditingFILE() != null) {
HistoryTemplateListCache.getInstance().closeSelectedReport(jt);
DesignerContext.getDesignerFrame().openTemplate(jt.getEditingFILE());
}
}
}, new PluginFilter() {
@Override
public boolean accept(PluginContext pluginContext) {

Loading…
Cancel
Save