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

When the select option doesn't have value selected, it crashes the Web Content portlet

    Details

      Description

      Reproduction steps:
      1) Create a structure which has a select field
      2) Set its Multiple field to Yes
      3) Create a template
      4) Create a Web Content based on this structure, but do not select any options
      5) Try to save it
      Results: Web Content is temporarily unavailable.

      Error in the log:

      09:37:23,151 ERROR [http-bio-8080-exec-7][render_portlet_jsp:132] null
      java.lang.NullPointerException
      at com.liferay.portlet.journal.util.JournalConverterImpl.updateContentDynamicElement(JournalConverterImpl.java:751)
      at com.liferay.portlet.journal.util.JournalConverterImpl.updateContentDynamicElement(JournalConverterImpl.java:723)
      at com.liferay.portlet.journal.util.JournalConverterImpl.getContent(JournalConverterImpl.java:161)
      at com.liferay.portlet.journal.util.JournalConverterUtil.getContent(JournalConverterUtil.java:30)
      at com.liferay.portlet.journal.action.ActionUtil.getContentAndImages(ActionUtil.java:290)
      at com.liferay.portlet.journal.action.EditArticleAction.updateArticle(EditArticleAction.java:623)
      at com.liferay.portlet.journal.action.EditArticleAction.processAction(EditArticleAction.java:141)
      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)
      at com.liferay.portal.kernel.portlet.PortletContainerUtil.processAction(PortletContainerUtil.java:115)
      at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:381)

      Notes:
      Reproduced on 6.2.x
      Fixed on master

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nikki.prudencio Nikki Prudencio
              Reporter:
              tibor.jandi Tibor Jandi
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE