Skip to content

Commit

Permalink
[JENKINS-34488] Add null check to isUnserializableException
Browse files Browse the repository at this point in the history
  • Loading branch information
ikedam committed Oct 16, 2016
1 parent 9892fdf commit 7f2ed85
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -54,6 +54,10 @@ public ErrorAction(Throwable error) {
* an equivalent that captures the same details but serializes nicely.
*/
private boolean isUnserializableException(Throwable error) {
if (error == null) {
// This shouldn't happen.
return false;
}
try {
// Some exceptions are refused to be serialized for security reasons.
// (E.g. PowerAssertionError thrown by "assert false")
Expand Down

0 comments on commit 7f2ed85

Please sign in to comment.