Browse Source

Merge pull request #4094 in DESIGN/design from bugfix/10.0 to release/10.0

* commit 'ac5a017db914f9eb6befe9f94799d088aaaa1024':
  REPORT-51446 注册表启动设计器会报错并闪退
zheng-1641779399395
superman 4 years ago
parent
commit
fe9df15ebd
  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