From 17dcd9464c0fb73dc5c536cbcbeaa1d6f6592e79 Mon Sep 17 00:00:00 2001 From: Ainur Date: Wed, 3 Jul 2024 14:05:50 +0200 Subject: [PATCH] CB-5344 set value fix for nullable main property --- .../src/io/cloudbeaver/WebServiceUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/WebServiceUtils.java b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/WebServiceUtils.java index f87931b036..914ebbb577 100644 --- a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/WebServiceUtils.java +++ b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/WebServiceUtils.java @@ -215,6 +215,9 @@ private static void setMainProperties(DBPConnectionConfiguration dsConfig, WebCo } if (config.getMainPropertyValues() != null) { for (Map.Entry e : config.getMainPropertyValues().entrySet()) { + if (e.getValue() == null) { + continue; + } switch (e.getKey()) { case DBConstants.PROP_HOST -> dsConfig.setHostName(CommonUtils.toString(e.getValue())); case DBConstants.PROP_PORT -> dsConfig.setHostPort(CommonUtils.toString(e.getValue()));