Skip to content
Permalink
Browse files

[JENKINS-34488] Add null check to `isUnserializableException`

  • Loading branch information
ikedam committed Oct 16, 2016
1 parent 9892fdf commit 7f2ed852fe0ffc119e8d5e8c7a408ddd35a81437
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/main/java/org/jenkinsci/plugins/workflow/actions/ErrorAction.java
@@ -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")

0 comments on commit 7f2ed85

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