Browse Source

Pull request #6305: REPORT-60253 安装大数据集导出插件后,模板从本地切换到远程,再切换到本地,触发保存模板会弹窗 保存失败,有npe报错

Merge in DESIGN/design from ~HADES/design:bugfix/10.0 to bugfix/10.0

* commit '793caec8900b40ee63f4c9c597273d2c3b050090':
  REPORT-60253 安装大数据集导出插件后,模板从本地切换到远程,再切换到本地,触发保存模板会弹窗 保存失败,有npe报错
bugfix/10.0
Hades 3 years ago
parent
commit
8cb2c2562f
  1. 2
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java
  2. 5
      designer-base/src/main/java/com/fr/design/mainframe/JTemplateFactory.java

2
designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

@ -381,8 +381,10 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
*/
@Deprecated
public void refreshResource() {
if (JTemplateFactory.isAvailable()) {
refreshResource(this.editingFILE);
}
}
public void refreshResource(FILE file) {

5
designer-base/src/main/java/com/fr/design/mainframe/JTemplateFactory.java

@ -93,4 +93,7 @@ public final class JTemplateFactory {
ALL_APP.remove(app);
}
}
}
public static boolean isAvailable() {
return !ALL_APP.isEmpty();
}}
Loading…
Cancel
Save