Uploaded image for project: 'PUBLIC - Liferay Portal Web Content Experience'
  1. PUBLIC - Liferay Portal Web Content Experience
  2. WCM-585

User Segment Content Display portlets break if the Simulator is configured with removed segments

    Details

    • Fix Priority:
      3

      Description

      1. Create a user segment
      2. Create a web content article
      3. Place User Segment Content Display portlet on a page
      4. Configure the portlet to show the created article for the created user segment
      5. Turn on simulation for the created user segment
      6. Go to Control Panel and delete the user segment
      7. Go back to the page with the portlet

      Result: Error in the USCD portlet on the UI, exception in the log

      java.lang.NullPointerException
              at com.liferay.content.targeting.util.ContentTargetingUtil.getAssetCategoryIds(ContentTargetingUtil.java:112)
              at com.liferay.content.targeting.portlet.UserSegmentContentDisplayPortlet.populateViewContext(UserSegmentContentDisplayPortlet.java:218)
              at com.liferay.content.targeting.portlet.UserSegmentContentDisplayPortlet.doPopulateContext(UserSegmentContentDisplayPortlet.java:160)
              at com.liferay.content.targeting.portlet.CTFreeMarkerPortlet.populateContext(CTFreeMarkerPortlet.java:87)
              at com.liferay.content.targeting.portlet.FreeMarkerPortlet.include(FreeMarkerPortlet.java:115)
              at com.liferay.util.bridges.mvc.MVCPortlet.include(MVCPortlet.java:378)
              at com.liferay.util.bridges.mvc.MVCPortlet.doView(MVCPortlet.java:144)
              at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:235)
              at com.liferay.util.bridges.mvc.MVCPortlet.doDispatch(MVCPortlet.java:314)
              at javax.portlet.GenericPortlet.render(GenericPortlet.java:262)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:103)
              at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:55)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
              at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
              at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:112)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
              at com.liferay.portal.http.service.internal.servlet.BundleFilterChain.doFilter(BundleFilterChain.java:69)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:119)
              at com.liferay.portal.http.service.internal.servlet.BundleFilterChain.doFilter(BundleFilterChain.java:74)
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                2.0
                1.1.4