From b15807fb280e0a6af965f13eb6dccf4c0ed39376 Mon Sep 17 00:00:00 2001 From: Harrison Date: Fri, 27 Dec 2019 11:33:51 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-25730=20=E6=9C=80=E6=96=B0=E7=9A=84relea?= =?UTF-8?q?se=E8=AE=BE=E8=AE=A1=E5=99=A8=E5=90=AF=E5=8A=A8=E5=90=8E?= =?UTF-8?q?=E4=B8=80=E7=9B=B4=E6=8A=A5=E6=A8=A1=E6=9D=BF=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=20=E8=BF=99=E9=87=8C=E6=89=A7=E8=A1=8C=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E9=9C=80=E8=A6=81=E5=88=A4=E7=A9=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/design/data/datapane/TableDataTreePane.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java b/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java index 0865ff583f..5a289e6fd7 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java @@ -171,8 +171,10 @@ public class TableDataTreePane extends BasicTableDataTreePane { private void reloadCurrTemplate() { JTemplate jt = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); - HistoryTemplateListCache.getInstance().closeSelectedReport(jt); - DesignerContext.getDesignerFrame().openTemplate(jt.getEditingFILE()); + if (jt != null && jt.getEditingFILE() != null) { + HistoryTemplateListCache.getInstance().closeSelectedReport(jt); + DesignerContext.getDesignerFrame().openTemplate(jt.getEditingFILE()); + } } }, new PluginFilter() { @Override