• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • None

      Seen this when submodules are selected. I think this happens when the build settings change and we get a first time build.

      12:51:26 First time build. Skipping changelog.
      12:51:26 FATAL: null
      12:51:26 java.lang.NullPointerException
      12:51:26 at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:82)
      12:51:26 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1074)
      12:51:26 at hudson.scm.SCM.checkout(SCM.java:485)
      12:51:26 at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
      12:51:26 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
      12:51:26 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      12:51:26 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      12:51:26 at hudson.model.Run.execute(Run.java:1738)
      12:51:26 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      12:51:26 at hudson.model.ResourceController.execute(ResourceController.java:98)
      12:51:26 at hudson.model.Executor.run(Executor.java:410)

          [JENKINS-31586] NPE When using submodules extension

          Mark Waite added a comment -

          Thanks for the report. It certainly appears from the source code of git-client-plugin 1.19.0 that there is a potential for a null pointer exception at line 82 if revToBuild is null or if revToBuild.lastBuild is null.

          Mark Waite added a comment - Thanks for the report. It certainly appears from the source code of git-client-plugin 1.19.0 that there is a potential for a null pointer exception at line 82 if revToBuild is null or if revToBuild.lastBuild is null.

            Unassigned Unassigned
            mmitche Matthew Mitchell
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: