History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-1534
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Graeme Rocher
Reporter: Marc Palmer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Grails

Dynamic finders throw a MissingMethodException if passed a null parameter

Created: 23/Aug/07 06:13 AM   Updated: 28/Nov/07 05:47 AM
Component/s: None
Affects Version/s: 0.5.6
Fix Version/s: 1.0-RC2

Time Tracking:
Not Specified


 Description  « Hide
For example we see this trace in the log when we call the finder with null parameter (due to unchecked null input from user):

Caused by: groovy.lang.MissingMethodException: No signature of method: static PendingEmailConfirmation.findByConfirmationToken() is applicable for argument types: (null) values: {null}
at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:738)

This should of course not happen, it should just fail to find one, unless there is one with a null token.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.