This commit is contained in:
robin
2023-06-23 15:57:20 +08:00
parent 150d1399a6
commit f0829b28de
4 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ public class ConnectionInfoHandler {
public ConnectInfo toInfo(Long dataSourceId, String database, Long consoleId) {
DataResult<DataSource> result = dataSourceService.queryById(dataSourceId);
DataSource dataSource = result.getData();
if (!result.success() && dataSource != null) {
if (!result.success() && dataSource == null) {
throw new ParamBusinessException("dataSourceId");
}
ConnectInfo connectInfo = new ConnectInfo();