Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-5044

NPE occurs when add a site based on Minium Demo

    Details

    • Fix Priority:
      4

      Description

      Step to reproduce:

      1. Add a new site based on Minium Demo

      Expected Results:
      The site should be created successfully.

      Actual Results:
      Creation failure. The following NPE is thrown in server console.

      2020-10-29 08:46:14.181 ERROR [http-nio-8080-exec-8][MiniumSiteInitializer:268] java.lang.NullPointerException
      java.lang.NullPointerException
              at com.liferay.dynamic.data.mapping.storage.DDMFormFieldValue.getFieldReference(DDMFormFieldValue.java:91)
              at com.liferay.dynamic.data.mapping.internal.io.DDMFormValuesJSONSerializer.toJSONObject(DDMFormValuesJSONSerializer.java:211)
              at com.liferay.dynamic.data.mapping.internal.io.DDMFormValuesJSONSerializer.toJSONArray(DDMFormValuesJSONSerializer.java:198)
              at com.liferay.dynamic.data.mapping.internal.io.DDMFormValuesJSONSerializer.addFieldValues(DDMFormValuesJSONSerializer.java:125)
              at com.liferay.dynamic.data.mapping.internal.io.DDMFormValuesJSONSerializer.serialize(DDMFormValuesJSONSerializer.java:71)
      

      Reproduced on:
      Tomcat 9.0.37 + MySQL 5.7. Portal master-private GIT ID: 948a1968f957b82ea4054cae2800785241bcf965.
      Tomcat 9.0.37 + MySQL 5.7. Portal 7.3.x-private GIT ID: aab2c4fa5da5fd9656651187cd96391ecbd66516.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              yang.cao Yang Cao
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.4 CE GA1