Skip to content

Commit 282571a

Browse files
committed
Merge branch '3.3.x' into 3.4.x
2 parents ab66034 + 5ec0997 commit 282571a

File tree

1 file changed

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

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -136,9 +136,11 @@ private URI buildUrl(ApiVersion apiVersion, String path, Object... params) {
136136
verifyApiVersion(apiVersion);
137137
try {
138138
URIBuilder builder = new URIBuilder("/v" + apiVersion + path);
139-
int param = 0;
140-
while (param < params.length) {
141-
builder.addParameter(Objects.toString(params[param++]), Objects.toString(params[param++]));
139+
if (params != null) {
140+
int param = 0;
141+
while (param < params.length) {
142+
builder.addParameter(Objects.toString(params[param++]), Objects.toString(params[param++]));
143+
}
142144
}
143145
return builder.build();
144146
}

0 commit comments

Comments
 (0)