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

NullPointerException is thrown when searching liferay-0 index

    Details

      Description

      Steps

      (For master branch: Go to Control Panel > Server Administration > Log Levels and set com.liferay to debug level since the NPE will only log with debug enabled)

      1. Create a new page
      2. Add low level search options
        • Add configurations:
        • Indexes: liferay-0
        • Federated Search Key: liferay-0
      3. Add search results widget
        • Add configurations:
        • Federated Search Key: liferay-0
      4. Refresh page or revisit page

      Expected

      No errors in tomcat logs

      Actual

      NullPointerException in logs

      2020-07-10 01:02:07.510 ERROR [http-nio-8080-exec-10][SearchResultSummaryDisplayBuilder:107] java.lang.NullPointerException2020-07-10 01:02:07.510 ERROR [http-nio-8080-exec-10][SearchResultSummaryDisplayBuilder:107] java.lang.NullPointerExceptionjava.lang.NullPointerException at com.liferay.portal.search.web.internal.result.display.builder.SearchResultSummaryDisplayBuilder.appendStagingLabel(SearchResultSummaryDisplayBuilder.java:295) at com.liferay.portal.search.web.internal.result.display.builder.SearchResultSummaryDisplayBuilder.getSummary(SearchResultSummaryDisplayBuilder.java:847) at com.liferay.portal.search.web.internal.result.display.builder.SearchResultSummaryDisplayBuilder.build(SearchResultSummaryDisplayBuilder.java:333) at com.liferay.portal.search.web.internal.result.display.builder.SearchResultSummaryDisplayBuilder.build(SearchResultSummaryDisplayBuilder.java:104) at com.liferay.portal.search.web.internal.search.results.portlet.SearchResultsPortlet.doBuildSummary(SearchResultsPortlet.java:337) at com.liferay.portal.search.web.internal.search.results.portlet.SearchResultsPortlet.doBuildSummaries(SearchResultsPortlet.java:268) at com.liferay.portal.search.web.internal.search.results.portlet.SearchResultsPortlet.buildSummaries(SearchResultsPortlet.java:221) at com.liferay.portal.search.web.internal.search.results.portlet.SearchResultsPortlet.buildDisplayContext(SearchResultsPortlet.java:141) at com.liferay.portal.search.web.internal.search.results.portlet.SearchResultsPortlet.render(SearchResultsPortlet.java:112) 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:115) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      

        Attachments

          Activity

            People

            Assignee:
            brian.lee Brian Lee
            Reporter:
            kevin.tan Kevin Tan
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Kevin Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              42 weeks, 6 days ago

                Packages

                Version Package
                7.1.10 DXP FP19
                7.1.10.5 SP5
                7.1.X
                7.2.10 DXP FP7
                7.2.X
                7.3.4 CE GA5
                7.3.10 DXP GA1
                Master