Skip to content

Commit 357ced0

Browse files
committed
Allow ContainerConfig to be nullable in ImageInfo
This seems to have changed in Docker Engine API 1.45 with Docker 26.
1 parent 4f9524a commit 357ced0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/com/spotify/docker/client/messages/AutoValue_ImageInfo.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ final class AutoValue_ImageInfo extends ImageInfo {
7878
}
7979
this.created = created;
8080
this.container = container;
81-
if (containerConfig == null) {
82-
throw new NullPointerException("Null containerConfig");
83-
}
8481
this.containerConfig = containerConfig;
8582
if (dockerVersion == null) {
8683
throw new NullPointerException("Null dockerVersion");
@@ -226,7 +223,7 @@ public boolean equals(Object o) {
226223
&& (this.comment.equals(that.comment()))
227224
&& (this.created.equals(that.created()))
228225
&& ((this.container == null) ? (that.container() == null) : this.container.equals(that.container()))
229-
&& (this.containerConfig.equals(that.containerConfig()))
226+
&& ((this.containerConfig == null) ? (that.containerConfig() == null) : this.containerConfig.equals(that.containerConfig()))
230227
&& (this.dockerVersion.equals(that.dockerVersion()))
231228
&& (this.author.equals(that.author()))
232229
&& (this.config.equals(that.config()))

0 commit comments

Comments
 (0)