Skip to content

fix: guard null pull status in PullImageResultCallback (#2465) - #2694

Open
arimu1 wants to merge 1 commit into
docker-java:mainfrom
arimu1:fix/2465-pull-null-status
Open

arimu1 wants to merge 1 commit into
docker-java:mainfrom
arimu1:fix/2465-pull-null-status

Conversation

@arimu1

@arimu1 arimu1 commented Sep 12, 2026

Copy link
Copy Markdown

Summary

  • Fixes a NullPointerException in checkForDockerSwarmResponse when the first pull stream item is an error with a null status (typical for auth/registry failures).
  • Applies the same null-safe check in the deprecated docker-java-core callback for parity.
  • Adds unit tests that do not require a Docker daemon.

Fixes #2465

Test plan

  • export JAVA_HOME=/Users/fardanan/Library/Java/JavaVirtualMachines/jdk-21.0.12+8/Contents/Home
  • mvn -pl docker-java -am test -Dtest=PullImageResultCallbackTest -DfailIfNoTests=false

Pull error responses can omit status; checkForDockerSwarmResponse no longer calls matches on null so auth/pull failures surface as DockerClientException.

Fixes docker-java#2465
@arimu1
arimu1 requested a review from a team as a code owner September 12, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

auth failure obscured by NullPointerException from checkForDockerSwarmResponse in PullImageResultCallback

1 participant