-
Type:
Regression Bug
-
Status: Verified
-
Resolution: Unresolved
-
Affects Version/s: 7.0.X, 7.1.X, Master
-
Fix Version/s: None
-
Component/s: Portal Configuration > Custom Fields, Search Infrastructure
-
Labels:
-
Fix Priority:2
LPS-72748 seems to be related to this issue.
Steps to reproduce:
1. Deploy the Portlet (search-demo-1.0.0.jar)
2. Add a custom field for Web Content in Control Panel -> Configuration -> Custom field.
3. Add the demo search portlet in any page
4. In the input box add a keyword (for example hello) and click the search button.
Expected result: there is no NPE reported.
Actual result: NPE reported in log.
#########keyWord#########hello ###################Exceptions###################### com.liferay.portal.kernel.search.SearchException: java.lang.RuntimeException: com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException at com.liferay.portal.kernel.search.BaseIndexer.search(BaseIndexer.java:653) at com.demo.portlet.SearchDemoPortlet.searchWebContent(SearchDemoPortlet.java:84) at com.demo.portlet.SearchDemoPortlet.searchKeyword(SearchDemoPortlet.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.liferay.portal.kernel.portlet.LiferayPortlet.callActionMethod(LiferayPortlet.java:186) at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.callActionMethod(MVCPortlet.java:418) at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:94) at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.processAction(MVCPortlet.java:260) at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:71) at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48) at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:108) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) 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.InvokerPortletImpl.invoke(InvokerPortletImpl.java:535) at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:581) at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:335) at com.liferay.portal.monitoring.internal.portlet.MonitoringInvokerPortlet.processAction(MonitoringInvokerPortlet.java:189) ....... ... 172 more Caused by: java.lang.NullPointerException
Reproduced on 7.0.x: 4d77917c96d8031aab8d7fddbd86b6731bb0ed0d
Reproduced on master: e5f49f1432818edc4964092339adfaaa961de41d using attached com.liferay.mvc.portlet.jar