From 3bab59843af0182ffbfbc7fd2b7970f8d48ff43e Mon Sep 17 00:00:00 2001 From: lucian Date: Mon, 20 Dec 2021 15:57:19 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-64412=20=E8=8E=B7=E5=8F=96=E8=A1=A8?= =?UTF-8?q?=E5=90=8D=E4=BD=BF=E7=94=A8=E6=96=87=E6=9C=AC=E6=A1=86=E5=86=85?= =?UTF-8?q?=E5=AE=B9=EF=BC=8C=E8=80=8C=E9=9D=9E=E9=80=89=E6=8B=A9=E7=9A=84?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/design/data/datapane/ChoosePane.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/ChoosePane.java b/designer-base/src/main/java/com/fr/design/data/datapane/ChoosePane.java index 55ff90abb..99a294fdd 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/ChoosePane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/ChoosePane.java @@ -486,12 +486,9 @@ public class ChoosePane extends BasicBeanPane implements Refresha protected String getTableName() { String tableName = ""; - Object obj = this.tableNameComboBox.getSelectedItemObject(); + Object obj = this.tableNameComboBox.getSelectedItem(); if (obj == null) { - obj = this.tableNameComboBox.getSelectedItem(); - if (obj == null) { - obj = this.tableNameComboBox.getEditor().getItem(); - } + obj = this.tableNameComboBox.getEditor().getItem(); } if (obj instanceof TreePath) { Object tp = ((ExpandMutableTreeNode) ((TreePath) obj).getLastPathComponent()).getUserObject();