|
@@ -220,8 +220,11 @@ public class DataSourceServiceImpl implements DataSourceService {
|
|
|
DataSource dataSource = dataSourceDao.getDataSourceById(id);
|
|
|
String clsId = dataSource.getClsId();
|
|
|
DataSourceDriver dataSourceDriver = dataSourceDao.getDataSourceDriverByclsId(clsId);
|
|
|
- Integer dataSourceDriverId = dataSourceDriver.getId();
|
|
|
- return Result.ok(dataSourceDao.getDbItemByDid(dataSourceDriverId));
|
|
|
+ if (Blank.isNotEmpty(dataSourceDriver)){
|
|
|
+ Integer dataSourceDriverId = dataSourceDriver.getId();
|
|
|
+ return Result.ok(dataSourceDao.getDbItemByDid(dataSourceDriverId));
|
|
|
+ }
|
|
|
+ return Result.ok(null);
|
|
|
}
|
|
|
|
|
|
@Override
|