Skip to content

Commit

Permalink
fix for 3322_NPE_when_empty_path_in_postman_collection (#3324)
Browse files Browse the repository at this point in the history
  • Loading branch information
McAlm authored Sep 25, 2024
1 parent 6abcb22 commit 6a23531
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ public static String extractPathFromUrl(Endpoint endpoint) {
var host = String.join(".", endpoint.request().url().host());
pathSegments.add(host);

pathSegments.addAll(endpoint.request().url().path());
// fixes https://github.com/camunda/connectors/issues/3322
List<String> path =
endpoint.request().url().path() == null ? List.of() : endpoint.request().url().path();
pathSegments.addAll(path);
return pathSegments.stream()
.map(s -> s.replace("+", "_"))
.map(
Expand Down

0 comments on commit 6a23531

Please sign in to comment.