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

NPE when setting Type facet frequency threshold to 0

    Details

      Description

      Steps to reproduce:

      1. Add Type Facet to page
      2. Configure Type Facet:
        • Frequency Threshold: 0
      3. Save

      Result: Facet portlet is unavailable and NPE is thrown

      2018-06-14 16:26:26.015 ERROR [http-nio-9080-exec-4][render_portlet_jsp:131] null
      java.lang.NullPointerException
      	at com.liferay.portal.search.web.internal.facet.display.builder.AssetEntriesSearchFacetDisplayBuilder.buildTermDisplayContexts(AssetEntriesSearchFacetDisplayBuilder.java:125)
      	at com.liferay.portal.search.web.internal.facet.display.builder.AssetEntriesSearchFacetDisplayBuilder.build(AssetEntriesSearchFacetDisplayBuilder.java:45)
      	at com.liferay.portal.search.web.internal.type.facet.portlet.TypeFacetPortlet.buildDisplayContext(TypeFacetPortlet.java:138)
      	at com.liferay.portal.search.web.internal.type.facet.portlet.TypeFacetPortlet.render(TypeFacetPortlet.java:81)
      	at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:127)
      	at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:58)
      	at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:124)
      	at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
      	at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:108)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	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.portlet.internal.InvokerPortletImpl.invoke(InvokerPortletImpl.java:606)
      	at com.liferay.portlet.internal.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:702)
      	at com.liferay.portlet.internal.InvokerPortletImpl.render(InvokerPortletImpl.java:399)
      	at com.liferay.portal.monitoring.internal.portlet.MonitoringInvokerPortlet.lambda$render$0(MonitoringInvokerPortlet.java:272)
      	at com.liferay.portal.monitoring.internal.portlet.MonitoringInvokerPortlet._render(MonitoringInvokerPortlet.java:375)
      	at com.liferay.portal.monitoring.internal.portlet.MonitoringInvokerPortlet.render(MonitoringInvokerPortlet.java:270)

      Reproduced on:
      Tomcat 9.0.6 + MySQL 5.7.22
      Portal Master Git SHA: c9735ba64e66d4db7148496b89815f8dc059a6c1

        Attachments

          Activity

            People

            Assignee:
            linda.sui Linda Sui
            Reporter:
            brian.lee Brian Lee
            Participants of an Issue:
            Recent user:
            Enterprise Release HU
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 13 weeks, 2 days ago

                Packages

                Version Package
                7.2.X
                7.3.10 DXP GA1