isMatrixProject ought to handle nulls, just in case.

(cherry picked from commit 747d550c3c)
This commit is contained in:
Jesse Glick committed 2015-02-04 14:05:11 -05:00
1 parent 075bd9b5b3
commit da829b345d
1 file changed
+1 -1
+1 -1
View File
@@ -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) {