Details

      Description

      Hello,

      I noticed the following problem:

      1. create a web content structure
      2. add a text field (localisable)
      3. add a "Document and Media" field to it
      4. make the field not localisable
      5. save the structure
      6. create a dummy template for the structure
      7. create a new web content based on this structure
      8. enter some text and pick a document or image
      9. publish
      10. edit again and try adding a new translation
        • the text field will be editable
        • the document and media field is readonly
      11. specify some text for the text field
      12. try saving the translation

      The save will fail and the console will show the following NPE:

      11:05:01,183 ERROR [ajp-bio-8009-exec-116][render_portlet_jsp:132] null
      java.lang.NullPointerException
      at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.getFieldNames(DDMImpl.java:470)
      at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.getFieldValues(DDMImpl.java:487)
      at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.getFields(DDMImpl.java:238)
      at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.getFields(DDMImpl.java:200)
      at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.getFields(DDMImpl.java:258)
      at com.liferay.portlet.dynamicdatamapping.util.DDMUtil.getFields(DDMUtil.java:73)
      at com.liferay.portlet.journal.action.ActionUtil.getContentAndImages(ActionUtil.java:286)
      at com.liferay.portlet.journal.action.EditArticleAction.updateArticle(EditArticleAction.java:638)
      at com.liferay.portlet.journal.action.EditArticleAction.processAction(EditArticleAction.java:148)
      at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:166)
      at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:216)
      at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:71)
      at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
      at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:597)
      at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:628)
      at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:308)
      at com.liferay.portlet.PortletContainerImpl._doProcessAction(PortletContainerImpl.java:402)
      at com.liferay.portlet.PortletContainerImpl.processAction(PortletContainerImpl.java:110)
      at com.liferay.portlet.SecurityPortletContainerWrapper.processAction(SecurityPortletContainerWrapper.java:109)
      at com.liferay.portlet.RestrictPortletContainerWrapper.processAction(RestrictPortletContainerWrapper.java:75)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sherry.zhu Sherry Zhu
              Reporter:
              alex.weirig@technolink.lu Alex Weirig
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 10 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE