Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-62483

NPE when add new entry in Dynamic Data Lists Display

    Details

      Description

      Steps to reproduce it in master

      1. Go to Dynamic Data Lists.
      2. Add new Dynamic Data Lists.
      3. Select Data Definitions.
      4. Create a new Data Definition with one Text field.
      5. Choose new definition.
      6. Save new Dynamic Data Lists.
      7. Go to Guest Site.
      8. Add Dynamic Data Lists Display.
      9. Select List the new Dynamic Data Lists.
      10. Click in Add Form Template.
      11. Add a Separator to the Form and Save.
      12. Click in Add New.
      13. Insert a text in text field.
      14. Click in Publish.

      Expected result:
      Entry Save Successful.

      Actual result:

       
      java.lang.NullPointerException
      	at com.liferay.dynamic.data.mapping.form.evaluator.internal.DDMFormEvaluatorHelper.evaluateDDMFormFieldValue(DDMFormEvaluatorHelper.java:160)
      	at com.liferay.dynamic.data.mapping.form.evaluator.internal.DDMFormEvaluatorHelper.evaluateDDMFormFieldValue(DDMFormEvaluatorHelper.java:141)
      	at com.liferay.dynamic.data.mapping.form.evaluator.internal.DDMFormEvaluatorHelper.evaluateDDMFormFieldValues(DDMFormEvaluatorHelper.java:211)
      	at com.liferay.dynamic.data.mapping.form.evaluator.internal.DDMFormEvaluatorHelper.evaluate(DDMFormEvaluatorHelper.java:68)
      	at com.liferay.dynamic.data.mapping.form.evaluator.internal.DDMFormEvaluatorImpl.evaluate(DDMFormEvaluatorImpl.java:47)
      	at com.liferay.dynamic.data.mapping.validator.internal.DDMFormValuesValidatorImpl.evaluateDDMFormFieldValidationExpressions(DDMFormValuesValidatorImpl.java:80)
      	at com.liferay.dynamic.data.mapping.validator.internal.DDMFormValuesValidatorImpl.validate(DDMFormValuesValidatorImpl.java:64)
      	at com.liferay.dynamic.data.mapping.storage.impl.JSONStorageAdapter.validate(JSONStorageAdapter.java:143)
      	at com.liferay.dynamic.data.mapping.storage.impl.JSONStorageAdapter.doCreate(JSONStorageAdapter.java:47)
      	at com.liferay.dynamic.data.mapping.storage.BaseStorageAdapter.create(BaseStorageAdapter.java:40)
      	at com.liferay.dynamic.data.mapping.storage.impl.StorageEngineImpl.create(StorageEngineImpl.java:45)
      	at com.liferay.dynamic.data.mapping.storage.StorageEngineUtil.create(StorageEngineUtil.java:31)
      	at com.liferay.dynamic.data.lists.service.impl.DDLRecordLocalServiceImpl.addRecord(DDLRecordLocalServiceImpl.java:101)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:84)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
      	at com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:38)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      

        Attachments

          Activity

            People

            Assignee:
            victor.ware Victor Ware
            Reporter:
            inacio.nery Inácio Nery
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              4 years, 40 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 Beta 5