[ http://jira.codehaus.org/browse/CONTINUUM-937?page=all ]
Emmanuel Venisse closed CONTINUUM-937. -------------------------------------- Assignee: Emmanuel Venisse Resolution: Fixed Fix Version/s: 1.1 Fixed. > NPE in DefaultContinuumScm.getValidationMessages, e.g. when maven-scm-local > cannot access files > ----------------------------------------------------------------------------------------------- > > Key: CONTINUUM-937 > URL: http://jira.codehaus.org/browse/CONTINUUM-937 > Project: Continuum > Issue Type: Bug > Components: SCM > Affects Versions: 1.0.3 > Reporter: Arne Degenring > Assigned To: Emmanuel Venisse > Priority: Minor > Fix For: 1.1 > > > We experience the following NPE when maven-scm-local cannot access the > filesystem, e.g. because a server is down. This is due to a missing > null-check for variable "messages" in > DefaultContinuumScm.getValidationMessages. We use Continuum 1.0.3, but the > check is even missing in SVN trunk. > java.lang.NullPointerException > at > org.apache.maven.continuum.scm.DefaultContinuumScm.getValidationMessages(DefaultContinuumScm.java:286) > at > org.apache.maven.continuum.scm.DefaultContinuumScm.updateProject(DefaultContinuumScm.java:266) > at > org.apache.maven.continuum.core.action.UpdateWorkingDirectoryFromScmContinuumAction.execute(UpdateWorkingDirectoryFromScmContinuumAction.java:58) > at > org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:166) > at > org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47) > at > org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103) > at java.lang.Thread.run(Thread.java:534) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira