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

Editing a Dynamic Data List list record added in spreadsheet view throws NPE's, crashes portlet

    Details

      Description

      Tomcat 7.0 + MySQL 5.5. Portal master GIT ID: 87cb8f56c99a3789de12b56dee0342e50d0982e3.

      Steps to Reproduce:

      1. Navigate to Admin > Content > Dynamic Data Lists
      2. Create a Data Definition with a text field
      3. Create a List using this Data Definition
      4. Navigate to a page
      5. Add a DDL Display portlet and select the List you created above
      6. Configure the portlet to display in spreadsheet view
      7. Add a record in spreadsheet view
      8. Navigate to Admin > Content > Dynamic Data Lists > View the List you created
      9. Edit the record you added and click Publish

      Expected result:
      The user is able to edit the record and publish the changes.

      Actual result:
      Clicking the Publish button crashes the DDL portlet, the edits are not saved, and throws the following exceptions in the stacktrace:

      17:26:33,807 ERROR [http-bio-8080-exec-5][render_portlet_jsp:132] null
      java.lang.NullPointerException
      	at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.splitFieldsDisplayValue(DDMImpl.java:771)
      	at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.mergeFields(DDMImpl.java:371)
      	at com.liferay.portlet.dynamicdatamapping.util.DDMUtil.mergeFields(DDMUtil.java:112)
      	at com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordLocalServiceImpl.updateRecord(DDLRecordLocalServiceImpl.java:516)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:53)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      

      The same results occur if editing the record from the default view in the DDL portlet. Editing the record in the spreadsheet view throws the exception below and when navigating back to the page the user finds that the edits have not persisted:

      17:30:01,705 ERROR [http-bio-8080-exec-2][JSONWebServiceServiceAction:96] java.lang.NullPointerException
      

      This issue is not reproducible in ee-6.2.x:
      Tomcat 7.0 + MySQL 5.5. Portal ee-6.2.x EE GIT ID: be089e581648c5a6fd284a4fbb3e6b1db8cbcea4.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 13 weeks ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 M2