Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-1830

RuntimeException occurs when browse an empty folder as the location in new maven plugin project wizard

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.0
    • 3.0 M2
    • Wizards, Wizards > Project
    • None
    • Liferay IDE 2.2.1.201411191104-ga2 installed or Liferay IDE 2.2.1.201411200728-ga2 installed

    Description

      • launch eclipse and switch to liferay
      • new liferay plugin project wizard > select Maven as the build type
      • enter a valid project name
      • unchecked 'Use default location'
      • create a new folder in your disk
        (I'll create a 'new' folder in eclipse folder during testing)
      • browse the folder you've just created
        (Testing: /home/liferay/QA/IDE2.2.1/eclipse/new)

      will notice there will be an error about RuntimeException caused by NullPointerException:

      Caused by: java.lang.NullPointerException
      at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.getMavenParentPomVersion(NewLiferayPluginProjectOpMethods.java:164)
      at com.liferay.ide.project.core.model.internal.ArtifactVersionDefaultValueService.compute(ArtifactVersionDefaultValueService.java:46)
      at com.liferay.ide.project.core.model.internal.ArtifactVersionDefaultValueService.compute(ArtifactVersionDefaultValueService.java:1)
      at org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
      ... 57 more

      Please refer to the screenshot for message tracks.

      Attachments

        Activity

          People

            lu.li Lu Li (Inactive)
            yanan.yuan Yanan Yuan(Ashley Yuan)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 21 weeks, 2 days ago

              Packages

                Version Package
                3.0 M2