search(query) throws NullPointerException
问题 public List<DHProductLookupModel> findProductbyCCsapProductId(final String code) { final String queryString = "SELECT {p:" + DHProductLookupModel.SAPPRODUCTID + "}" + "FROM{" + DHProductLookupModel._TYPECODE + " AS p}" + "WHERE" + "{p:" + DHProductLookupModel.SAPPRODUCTID + "}=?code "; final FlexibleSearchQuery query = new FlexibleSearchQuery(queryString); query.addQueryParameter("code", code); return flexibleSearchService.<DHProductLookupModel> search(query).getResult(); } search(query)