Continuum
  1. Continuum
  2. CONTINUUM-2475

NullPointerException while adding a Maven 2 project if there is already an Ant project in the group

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.6, 1.4.0 (Beta)
    • Fix Version/s: 1.3.6
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      This occurs in the Selenium test:testAddMavenTwoProjectFromRemoteSourceToNonDefaultProjectGroup

      java.lang.NullPointerException
      at org.apache.maven.continuum.DefaultContinuum.checkForDuplicateProjectInGroup(DefaultContinuum.java:3750)
      at org.apache.maven.continuum.DefaultContinuum.executeAddProjectsFromMetadataActivity(DefaultContinuum.java:1714)
      at org.apache.maven.continuum.DefaultContinuum.executeAddProjectsFromMetadataActivity(DefaultContinuum.java:1843)
      at org.apache.maven.continuum.DefaultContinuum.addMavenTwoProject(DefaultContinuum.java:1393)
      at org.apache.maven.continuum.web.action.AddMavenTwoProjectAction.doExecute(AddMavenTwoProjectAction.java:109)
      at org.apache.maven.continuum.web.action.AddMavenProjectAction.execute(AddMavenProjectAction.java:189)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404)
      at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267)
      at org.apache.struts2.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:56)
      at java.lang.Thread.run(Thread.java:637)

        Activity

        Hide
        Brett Porter added a comment -

        seems to be order dependant as only running a subset of tests sees it pass

        Show
        Brett Porter added a comment - seems to be order dependant as only running a subset of tests sees it pass
        Hide
        Brett Porter added a comment -

        it depends on whether an Ant project with no group / artifact ID is present in the group already

        Show
        Brett Porter added a comment - it depends on whether an Ant project with no group / artifact ID is present in the group already

          People

          • Assignee:
            Brett Porter
            Reporter:
            Brett Porter
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: