Hi Everyone! I'm trying to get 100% code coverage for a particular service class, but a dynamic search method that I successfully implemented is denying me from obtaining that. Please help. The method uses the criteria api to return search results from a MySQL database. Here is the method.
All lines are covered except for when it hits the 2nd to the last line. It throws a NullPointerException. Here is the unit test so far: