[ http://jira.codehaus.org/browse/SCM-242?page=comments#action_77229 ] Kenney Westerhof commented on SCM-242: --------------------------------------
:) Thanks anyway! > NPE on ScmRepositoryException > ----------------------------- > > Key: SCM-242 > URL: http://jira.codehaus.org/browse/SCM-242 > Project: Maven SCM > Issue Type: Bug > Components: maven-plugin > Reporter: Julien HENRY > Assigned To: Kenney Westerhof > Attachments: NPE.patch > > > I get a NPE when using Scm plugin with the provider I wrote (Synergy) and the > URL is incorrect. > I think it's because I use the ScmRepositoryException( String msg ) > constructor instead of ScmRepositoryException( String msg, List > validationMessages ), and the result is > e.getValidationMessages().isEmpty() > raise a NPE. > Here is stack trace : > java.lang.NullPointerException > at > org.apache.maven.scm.plugin.AbstractScmMojo.getScmRepository(AbstractScmMojo.java:258) > at > org.apache.maven.scm.plugin.CheckoutMojo.checkout(CheckoutMojo.java:94) > at > org.apache.maven.scm.plugin.BootstrapMojo.execute(BootstrapMojo.java:58) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > ... -- 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