Skip to content

Commit 6f464e7

Browse files
committed
Merge branch '3.4.x'
2 parents da5796f + 282571a commit 6f464e7

File tree

1 file changed

+5
-3
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker

1 file changed

+5
-3
lines changed

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/DockerApi.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,11 @@ private URI buildUrl(ApiVersion apiVersion, String path, Object... params) {
146146
verifyApiVersion(apiVersion);
147147
try {
148148
URIBuilder builder = new URIBuilder("/v" + apiVersion + path);
149-
int param = 0;
150-
while (param < params.length) {
151-
builder.addParameter(Objects.toString(params[param++]), Objects.toString(params[param++]));
149+
if (params != null) {
150+
int param = 0;
151+
while (param < params.length) {
152+
builder.addParameter(Objects.toString(params[param++]), Objects.toString(params[param++]));
153+
}
152154
}
153155
return builder.build();
154156
}

0 commit comments

Comments
 (0)