You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
First thanks for your check. I have found the real issue which is caused by the BuildWithDetails class which initialised in its method getCauses() the BuildCause but simply overwrote the initialised values which could cause a NPE. I have improved the code in getCauses() which now handles it correct (I hope so)..
This is issue #125 revisited
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
The text was updated successfully, but these errors were encountered: