Skip to content

Commit

Permalink
JENKINS-25894 fix could throw an IllegalArgumentException under some …
Browse files Browse the repository at this point in the history
…conditions.
  • Loading branch information
jglick committed Oct 18, 2016
1 parent 5c91c7c commit 72bba7f
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -126,7 +126,10 @@ public void onFailure(StepContext context, Throwable t) {
if (handler.originalFailure == null) {
handler.originalFailure = new SimpleEntry<String, Throwable>(name, t);
} else {
handler.originalFailure.getValue().addSuppressed(t);
Throwable originalT = handler.originalFailure.getValue();
if (t != originalT) { // could be the same abort being delivered across branches
originalT.addSuppressed(t);
}
}
checkAllDone(true);
}
Expand Down

0 comments on commit 72bba7f

Please sign in to comment.