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

NPE occurs after deleting site template page

    Details

      Description

      Reproduction steps:

      1. Create a site template "Site Template Name". By default this template contains a page "home".
      2. Add a page "Site Page Name" in "Site Template Name".
      3. Create a new site "Site Name" based on template "Site Template Name". Verify that "Enable propagation of changes from the site template Site Template Name." is enabled.
      4. Navigate to page "Site Page Name" under "Site Name".
      5. Navigate to site template.
      6. In site template "Site Template Name", remove page "Site Page Name".

      Current behavior:
      Page is deleted from site template "Site Template Name" with NPE error:

      2019-09-03 07:09:11.691 ERROR [http-nio-7080-exec-1][IncludeTag:128] Current URL /group/template-37101/~/control_panel/manage?p_p_id=com_liferay_layout_admin_web_portlet_GroupPagesPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_auth=0lHIPytU generates exception: java.lang.NullPointerException
      java.lang.NullPointerException
              at org.apache.jsp.edit_005flayout_jsp._jspService(edit_005flayout_jsp:371)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
              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:729)
              at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:422)
              at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:433)
              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:118)
              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.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
              at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:380)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:357)
              at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:202)
              at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:86)
      

      Expectation:
      Page is deleted from site template "Site Template Name" without NPE error.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Days since last comment:
                10 hours, 15 minutes ago

                Packages

                Version Package