GRAILS-11072 Fixed NullPointerException during unique constraint validation in case when interface is used as field type.
Merge pull request #9 from pavelburov/master

Fix for GRAILS-11072