X Tutup
Skip to content

NPE in callback routines #302

@leinad75

Description

@leinad75

In some callback functions there is a bug which causes an NPE if an error occurs during command execution. E.g. in PushImageResultCallback.java:43

    if (latestItem == null || latestItem.isErrorIndicated()) {
        throw new DockerClientException("Could not push image: " + latestItem.getError());
    }

If latestItem is null, the subsequent call to latestItem.getErrror() throws an NPE.

Similar bugs are in these classes:
BuildImageResultCallback.java
PullImageResultCallback.java
PushImageResultCallback.java

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup