Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e3febbd

Browse files
Merge pull request #1357 from lowcoder-org/fix/querylibrary
Fixed null pointer exception when there is streamApi query library ty...
2 parents 905e616 + 98d1f18 commit e3febbd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/query/LibraryQueryApiServiceImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ private Flux<LibraryQuery> getByOrgIdWithDatasourcePermissions(String orgId) {
8787
Flux<LibraryQuery> libraryQueryFlux = libraryQueryService.getByOrganizationId(orgId)
8888
.cache();
8989

90-
Mono<List<String>> datasourceIdListMono = libraryQueryFlux.map(libraryQuery -> libraryQuery.getQuery().getDatasourceId())
90+
Mono<List<String>> datasourceIdListMono = libraryQueryFlux.map(libraryQuery -> {
91+
var datasourceId = libraryQuery.getQuery().getDatasourceId();
92+
return Objects.requireNonNullElse(datasourceId, "");
93+
})
9194
.filter(StringUtils::isNotBlank)
9295
.collectList()
9396
.cache();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /