提交 747d550c 编写于 作者: J Jesse Glick

isMatrixProject ought to handle nulls, just in case.

上级 9259f873
......@@ -190,7 +190,7 @@ public class Functions {
@Deprecated
public static boolean isMatrixProject(Object o) {
return o.getClass().getName().equals("hudson.matrix.MatrixProject");
return o != null && o.getClass().getName().equals("hudson.matrix.MatrixProject");
}
public static String xsDate(Calendar cal) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册