From e099b5f3e0c7ad90cf3d3a40470b9ecb5b1dbdfd Mon Sep 17 00:00:00 2001 From: "Destiny.Lin" Date: Wed, 15 Mar 2023 14:05:20 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-91743=20=E8=AE=BE=E8=AE=A1=E5=99=A8?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E5=85=B3=E9=97=AD=E6=A8=A1=E6=9D=BFA?= =?UTF-8?q?=E7=9A=84=E6=96=B9=E5=BC=8F=E8=A7=A6=E5=8F=91=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=EF=BC=8C=E8=AE=BE=E8=AE=A1=E5=99=A8=E9=A1=B5=E9=9D=A2=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E8=BF=98=E6=98=AF=E6=A8=A1=E6=9D=BFA=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AE=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 1283c1ec82..877689badf 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 @@ -1210,7 +1210,7 @@ public class MultiTemplateTabPane extends JComponent { private boolean checkCurrentClose(JTemplate template) { JTemplate currentTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); - return currentTemplate != null && ComparatorUtils.equals(template.getPath(), currentTemplate.getPath()); + return JTemplate.isValid(currentTemplate) && ComparatorUtils.equals(template.getPath(), currentTemplate.getPath()); } private class MultiTemplateTabMouseMotionListener implements MouseMotionListener {