Browse Source

Merge pull request #4095 in DESIGN/design from release/10.0 to feature/10.0

* commit 'fe9df15ebdeb3eb19b617b1199bd94c4e1382be6':
  REPORT-51446 注册表启动设计器会报错并闪退
feature/10.0
superman 4 years ago
parent
commit
48ef2eacb9
  1. 2
      designer-base/src/main/java/com/fr/start/BaseDesigner.java

2
designer-base/src/main/java/com/fr/start/BaseDesigner.java

@ -155,7 +155,7 @@ public abstract class BaseDesigner extends ToolBarMenuDock {
isException = true;//此时有文件nullpointer异常,执行打开空文件
}
}
if (file.exists() && !isException) {
if (file != null && file.exists() && !isException) {
df.openTemplate(file);
} else {
df.addAndActivateJTemplate();

Loading…
Cancel
Save