From cd72a8204235838a08e5bd0784e996b368ef3c1e Mon Sep 17 00:00:00 2001 From: "Destiny.Lin" Date: Fri, 30 Aug 2024 15:54:03 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-130733=20=E3=80=90FBP=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E3=80=91fbp=E8=AE=BE=E8=AE=A1=E5=99=A8=E6=96=B0?= =?UTF-8?q?=E5=BB=BA=E6=95=B0=E6=8D=AE=E8=BF=9E=E6=8E=A5=EF=BC=8C=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E4=B8=8D=E5=88=B0=E6=89=8B=E5=8A=A8=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E7=9A=84=E9=A9=B1=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/data/datapane/connect/JDBCDefPane.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java b/designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java index 4646d4da8d..c02a85c30f 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java @@ -22,11 +22,13 @@ import com.fr.design.utils.BrowseUtils; import com.fr.file.filter.ChooseFileFilter; import com.fr.general.CloudCenter; import com.fr.general.ComparatorUtils; +import com.fr.log.FineLoggerFactory; import com.fr.stable.ArrayUtils; import com.fr.stable.EncodeConstants; import com.fr.stable.StringUtils; import com.fr.third.guava.collect.HashBiMap; import com.fr.workspace.WorkContext; +import com.fr.workspace.server.repository.connection.ConnectionRepository; import javax.swing.JFileChooser; import javax.swing.JPanel; @@ -331,7 +333,13 @@ public class JDBCDefPane extends JPanel { } private void initMap() { - Map driverLoaders = DriverLoaderConfig.getInstance().getDriverLoaders(); + Map driverLoaders = null; + try { + driverLoaders = ConnectionRepository.getInstance().getDriverLoaders(); + } catch (Exception e) { + FineLoggerFactory.getLogger().error(e.getMessage(), e); + driverLoaders = new HashMap<>(); + } nameAndRepresent = getDriverLoaderAndRepresent(driverLoaders); }