Skip to content

Fix null pointer exception of query execution #1628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import reactor.core.publisher.Mono;

import java.time.Duration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeoutException;
Expand Down Expand Up @@ -81,7 +82,12 @@ private Mono<QueryExecutionResult> executeLocally(Datasource datasource, Map<Str
private Mono<QueryExecutionResult> executeByNodeJs(Datasource datasource, Map<String, Object> queryConfig, Map<String, Object> requestParams, QueryVisitorContext queryVisitorContext) {
List<Map<String, Object>> context = requestParams.entrySet()
.stream()
.map(entry -> Map.of("key", entry.getKey(), "value", entry.getValue()))
.map(entry -> {
Map<String, Object> temp = new HashMap<>();
temp.put("key", entry.getKey());
temp.put("value", entry.getValue()); // Allows null values
return temp;
})
.collect(Collectors.toList());

//forward cookies to js datasource
Expand Down
Loading