jenkinsci/email-ext-plugin — pull request #70 by fooshards (2013-06-20 20:23:22+00:00)
Title: Token Replacement fix

Without this null check, a null msg will cause an NPE which travels up and aborts the entire TokenMacro.expandAll call. As a use case, the Jenkins Accurev SCM plugin will produce this (literal null) if a commit msg is not provided by the user:

"changeSet" : {
"items" : [
{
"affectedPaths" : [
"foo/bar/Baz.java"
],
"author" : {
"absoluteUrl" : "http://someurlhere/whatever",
"fullName" : "Mr FooBar"
},
"commitId" : null,
"msg" : null,
"timestamp" : -1
}
],
"kind" : null
}