nullpointerexception « Criteria « JPA Q&A





1. NullPointerException when using and/or in criteria    stackoverflow.com

A very simplified example of how I use createCriteria method for getting data in my Grails application:

    def c = SomeClassOfMine.createCriteria()
    def projects = c.list(max: ...