mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-21 15:55:40 +00:00
isMatrixProject ought to handle nulls, just in case.
(cherry picked from commit 747d550c3c)
This commit is contained in:
1 parent
075bd9b5b3
commit
da829b345d
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user