Skip to content

Commit 5a7b84c

Browse files
CB-6227 fix npe (#3261)
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
1 parent 377a77d commit 5a7b84c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/model/WebDatabaseDriverInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public Map<String, Object> getDefaultConnectionProperties() {
185185
public WebPropertyInfo[] getDriverProperties() throws DBWebException {
186186
try {
187187
DBPConnectionConfiguration cfg = new DBPConnectionConfiguration();
188-
cfg.setUrl(driver.getSampleURL());
188+
cfg.setUrl(CommonUtils.notEmpty(driver.getSampleURL()));
189189
cfg.setHostName(DBConstants.HOST_LOCALHOST);
190190
cfg.setHostPort(driver.getDefaultPort());
191191
cfg.setDatabaseName(driver.getDefaultDatabase());

0 commit comments

Comments
 (0)