mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
fixed NPE as reported in http://www.nabble.com/Possible-NPE-bug--tf3793595.html
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3351 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
ab11e41d93
commit
efa072c232
1 file changed
+1
-1
@@ -28,7 +28,7 @@ public class SCMS {
|
||||
*/
|
||||
public static SCM parseSCM(StaplerRequest req) throws FormException {
|
||||
String scm = req.getParameter("scm");
|
||||
if(scm==null) return null;
|
||||
if(scm==null) return new NullSCM();
|
||||
|
||||
int scmidx = Integer.parseInt(scm);
|
||||
SCMDescriptor<?> d = SCMS.get(scmidx);
|
||||
|
||||
Reference in new issue
Block a user