Issue Details (XML | Word | Printable)

Key: GROOVY-1670
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Guillaume ALLEON
Reporter: Guillaume ALLEON
Votes: 0
Watchers: 0
Operations

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

toString() on NullObject does not throw a NPE

Created: 24/Jan/07 06:51 AM   Updated: 24/Jan/07 06:52 AM  Due: 24/Jan/07
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.1-beta-1

Time Tracking:
Not Specified


 Description  « Hide
When called on a null object, the toString() methods reports something like org.codehaus.groovy.runtime.NullObject@2f71e2 while a NPE would be more appropriate.

This causes a problem in GRAILS see GRAILS-648



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Guillaume ALLEON added a comment - 24/Jan/07 06:52 AM
Solve by jochen adding the toString() method to NullObject. I modified the test.