提交 da829b34 编写于 作者: J Jesse Glick

isMatrixProject ought to handle nulls, just in case.

(cherry picked from commit 747d550c)
上级 075bd9b5
......@@ -191,7 +191,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.
先完成此消息的编辑!
想要评论请 注册