From 91f3f3cd0bcc42a2453c329863fb7de7953210ca Mon Sep 17 00:00:00 2001 From: kerry Date: Fri, 28 Apr 2023 14:02:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/fr/design/file/MultiTemplateTabPane.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java b/designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java index a686699e1a..4352bab179 100644 --- a/designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java +++ b/designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java @@ -226,7 +226,7 @@ public class MultiTemplateTabPane extends JComponent { public boolean shouldClose(JTemplate closeJTemplate, int tplIndex, int i) { boolean matchOption = this.closeOption.shouldClose(tplIndex, i); JTemplate currentTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); - if (currentTemplate == null) { + if (!JTemplate.isValid(currentTemplate)) { return matchOption; } return matchOption && ComparatorUtils.equals(closeJTemplate.getTemplateTabOperatorType(),