Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/dev/4.3.2' into leb…
Browse files Browse the repository at this point in the history
…ie_432_bugfix_0919_6
  • Loading branch information
MarkPotato777 committed Sep 19, 2024
2 parents a7b160d + 506220f commit 9917466
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ private List<Database> getDatabaseByIds(Set<Long> ids) {
Map<Long, ConnectionConfig> id2Connection = dataSourceService.innerListByIds(connectionIds)
.stream().collect(Collectors.toMap(ConnectionConfig::getId, o -> o));
databases.forEach(database -> {
if (id2Connection.containsKey(database.getDataSource().getId())) {
if (Objects.nonNull(database.getDataSource())
&& id2Connection.containsKey(database.getDataSource().getId())) {
database.setDataSource(id2Connection.get(database.getDataSource().getId()));
}
});
Expand Down

0 comments on commit 9917466

Please sign in to comment.