From 9bd9006690fa2df3bada9532221dd16c0af139df Mon Sep 17 00:00:00 2001 From: "Mata.Li" Date: Tue, 31 Jul 2018 21:01:43 +0800 Subject: [PATCH] REPORT-10223 --- .../src/main/java/com/fr/design/DesignerEnvManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/designer-base/src/main/java/com/fr/design/DesignerEnvManager.java b/designer-base/src/main/java/com/fr/design/DesignerEnvManager.java index 4e45f0e0c..fb9466ba3 100644 --- a/designer-base/src/main/java/com/fr/design/DesignerEnvManager.java +++ b/designer-base/src/main/java/com/fr/design/DesignerEnvManager.java @@ -561,7 +561,9 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter { DesignerEnvManager.getEnvManager().setCurEnvName(envName); DesignUtils.refreshDesignerFrame(); - HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().refreshToolArea(); + if(HistoryTemplateListPane.getInstance().getCurrentEditingTemplate() != null) { + HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().refreshToolArea(); + } DesignTableDataManager.fireDSChanged(new HashMap()); } });