Skip to content

NullPointerException at "BuildCause.getUpstreamBuild()" #172

Description

@pavelbely

This is issue #125 revisited

public class BuildCause {
...
private Integer upstreamBuild;
...
public BuildCause() {
this.upstreamBuild = new Integer(0);
}
public int getUpstreamBuild() {
return upstreamBuild;
}
public void setUpstreamBuild(Integer upstreamBuild) {
this.upstreamBuild = upstreamBuild;
}

NullPointerException is thrown when getUpstreamBuild() is called.
Probably setting it to default value in the constructor has no effect, as it is being rewritten afterwards.

We use jenkins-client ver. 0.3.5 and Jenkins ver. 1.639

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions