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

NPE attempting to edit converted content page

    Details

    • Fix Priority:
      3

      Description

      Steps to Reproduce:

      1. Add the LayoutConverterConfiguration.config file to osgi/configs folder
      2. Add a widget page with a widget
      3. Go to pages admin and click on the three ellipsis menu next to the widget page
      4. Select "Convert to Content Page"
      5. Edit the content page

      Expected Result:
      No error message in console, widget is present, and can edit page

      Actual Result:
      Error in console, page is blank, and can't edit page

      2019-11-08 22:39:41.304 ERROR [http-nio-8080-exec-10][IncludeTag:128] Current URL /web/guest/test1?p_l_back_url=%2Fweb%2Fguest%2Ftest%3Fp_l_back_url%3D%252Fgroup%252Fguest%252F~%252Fcontrol_panel%252Fmanage%253Fp_p_id%253Dcom_liferay_layout_admin_web_portlet_GroupPagesPortlet%2526p_p_lifecycle%253D0%2526p_p_state%253Dmaximized%2526p_v_l_s_g_id%253D20118%2526p_p_auth%253DMVpQjNNK&p_l_mode=edit generates exception: java.lang.NullPointerException
      java.lang.NullPointerException
      	at com.liferay.layout.content.page.editor.web.internal.util.FragmentEntryLinkItemSelectorUtil.addFragmentEntryLinkFieldsSelectorURL(FragmentEntryLinkItemSelectorUtil.java:44)
      	at com.liferay.layout.content.page.editor.web.internal.display.context.ContentPageEditorDisplayContext._getFragmentEntryLinksSoyContext(ContentPageEditorDisplayContext.java:867)
      	at com.liferay.layout.content.page.editor.web.internal.display.context.ContentPageEditorDisplayContext.getEditorSoyContext(ContentPageEditorDisplayContext.java:250)
      	at com.liferay.layout.content.page.editor.web.internal.display.context.ContentPageLayoutEditorDisplayContext.getEditorSoyContext(ContentPageLayoutEditorDisplayContext.java:86)
      	at org.apache.jsp.view_005fsoy_jsp._jspService(view_005fsoy_jsp.java:249)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:373)
      	at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:385)
      	at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
      	at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
      	at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
      	at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
      	at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67)
      	at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:190)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:79)

      Reproduced on:
      Tomcat 9.0.17 + MySQL 5.7 Portal Master GIT ID: c84b39a1cba9f01f9fb8ad6d23149296aaecc04c

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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

                  Packages

                  Version Package