Browse Source

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

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

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

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

Loading…
Cancel
Save