Search Functionality Fails on String
Closed this issue · 1 comments
A1Liu commented
String encoded in this URL fails:
https://schedge.a1liu.com/2020/su/search?query=whooooooo+wer%27ee+halfway+thereeere+whooooah+li&limit=5
java.lang.NullPointerException: null
at api.v1.RowsToCourses.lambda$rowsToCourses$6(RowsToCourses.java:68)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
at api.v1.RowsToCourses.rowsToCourses(RowsToCourses.java:65)
at api.v1.SelectCoursesBySectionId.selectCoursesBySectionId(SelectCoursesBySectionId.java:16)
at api.v1.endpoints.SearchEndpoint.lambda$getHandler$8(SearchEndpoint.java:133)
at database.GetConnection.withContext(GetConnection.java:34)
A1Liu commented
This has been fixed! We switched to postgres search and it's working like a charm.