Using the provided OOTB Search & Promote components with an S&P service the following error is thrown when I try and search:
GET /content/Search/Results.html HTTP/1.1] org.apache.commons.httpclient.HttpMethodBaseGoing to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.GET /content/Search/Results.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service:Uncaught SlingExceptionjava.lang.NullPointerException: null at com.day.cq.searchpromote.xml.result.Pagination.getResultPages(Pagination.java:69)
So there's a null in the following code on the getResultPages call, in the results component.
Pagination pagination = search.getPagination();if(pagination != null) {totalPages = pagination.getTotalPages();for (ResultPage resultPage : pagination.getResultPages()) {if (resultPage.isSelected()) {currentPageNumber = resultPage.getPosition();}}}
Does anyone know why this might be null? Even if I have no valid search results I'm assuming this should still provide me with a valid view of zero results.