isMatrixProject ought to handle nulls, just in case.

This commit is contained in:
Jesse Glick committed 2014-04-14 23:20:12 -04:00
1 parent 9259f8736c
commit 747d550c3c
1 file changed
+1 -1
+1 -1
View File
@@ -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) {