diff --git a/designer-form/src/main/java/com/fr/design/mainframe/JForm.java b/designer-form/src/main/java/com/fr/design/mainframe/JForm.java index 03934d0358..b7fb90fcb8 100644 --- a/designer-form/src/main/java/com/fr/design/mainframe/JForm.java +++ b/designer-form/src/main/java/com/fr/design/mainframe/JForm.java @@ -310,7 +310,10 @@ public class JForm extends JTemplate implements BaseJForm jt) { - String key = jt.getEditingFILE().getPath() + template.getTemplateID(); + if (jt == null) { + return; + } + String key = jt.getEditingFILE().getPath() + jt.getTarget().getTemplateID(); FormHierarchyTreePane.getInstance().removeTreePath(key); } });