Skip to content
Browse files

Use TestObject.getRun in buildUpInitialHistory

On pipeline jobs, the call to deprecated API TestObject.getOwner() returns null, as reported on .

This causes an NPE on previousResult.getOwner().getNumber() ; using TestObject.getRun() avoid this issue.
  • Loading branch information
nostalic committed Mar 24, 2017
1 parent a7166ab commit 0d3b93af32e98073eb519ced3c1d549757124cf8
@@ -145,7 +145,7 @@ private void buildUpInitialHistory(CircularStabilityHistory ringBuffer, hudson.t
hudson.tasks.test.TestResult previousResult = getPreviousResult(result);
while (previousResult != null) {
new Result(previousResult.getOwner().getNumber(), previousResult.isPassed()));
new Result(previousResult.getRun().getNumber(), previousResult.isPassed()));
previousResult = previousResult.getPreviousResult();

0 comments on commit 0d3b93a

Please sign in to comment.
You can’t perform that action at this time.