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

Null pointer exception occurs when creating modules ext with portlet.properties override file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: No Longer Reproducible
    • Affects Version/s: 3.6.0 M1
    • Fix Version/s: None
    • Component/s: Modules
    • Labels:
      None

      Description

      1.create gradle workspace
      2.open modules ext project wizard
      3.prepare project name
      4.prepare original module name & version : com.liferay.login.web:3.0.4
      5.click Next
      6.click Add Files From Original Module to Override...
      7.choose portlet.properties from Select Override Files Dailog
      8.click OK
      9.click Finish

      error log:
      java.lang.NullPointerException
      at com.liferay.ide.core.util.ZipUtil._mkdir(ZipUtil.java:320)
      at com.liferay.ide.core.util.ZipUtil._copyEntry(ZipUtil.java:287)
      at com.liferay.ide.core.util.ZipUtil.unzip(ZipUtil.java:136)
      at com.liferay.ide.project.core.modules.ext.NewModuleExtOpMethods.copyFiles(NewModuleExtOpMethods.java:123)
      at com.liferay.ide.project.core.modules.ext.NewModuleExtOpMethods.execute(NewModuleExtOpMethods.java:75)
      at com.liferay.ide.project.core.modules.ext.NewModuleExtOp$Impl.execute(Unknown Source)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:398)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:362)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

       

      And if we add a jsf as the override, the error won't be popped up, but it didn't acutally added to the project

      To verify this ticket:

      1. create a ext project with portlet.properties and check
      2. create a ext project with a jsp file and check

        Attachments

          Activity

            People

            • Assignee:
              terry.jia Terry Jia
              Reporter:
              lily.li Lily Li
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                28 weeks, 6 days ago

                Packages

                Version Package