title: NullPointerException in Jenkins
body: <p>I'm currently reading the book 'Jenkins Continuous Integration Cookbook', and I came across this error after building a project on Jenkins:</p>
  
  <pre><code>ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
  
  java.lang.NullPointerException
      at java.io.File.&lt;init&gt;(File.java:239)
      at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:58)
      at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:41)
      at hudson.FilePath.act(FilePath.java:1001)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:604)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:567)
      at hudson.model.Run.execute(Run.java:1604)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:506)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:246)
  project=hudson.maven.MavenModuleSet@68f55ff2[A]
  project.getModules()=[]
  project.getRootModule()=null
  </code></pre>
  
  <p>I'm confused why I'm getting this, since my Java code is all autogenerated via Maven, and my tests in HTML format. I was able to successfully build the code using maven, before placing a directory with /src and pom.xml as it's children onto bitbucket.</p>
  
  <p>Any ideas why this error is showing? Any advice will be appreciated. </p>
  
  <p>Adding the rest of the error logs below (couldn't before because I was getting formatting errors).</p>
  
  <pre><code>FATAL: null
  java.lang.NullPointerException
          at java.io.File.&lt;init&gt;(File.java:239)
      at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:58)
      at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:41)
      at hudson.FilePath.act(FilePath.java:1001)
      at     hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:604)
  at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:567)
  at hudson.model.Run.execute(Run.java:1604)
  at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:506)
  at hudson.model.ResourceController.execute(ResourceController.java:88)
  at hudson.model.Executor.run(Executor.java:246)
  </code></pre>